gulp-html-text-wrapper

0.1.1 • Public • Published

gulp-html-text-wrapper NPM Version

A gulp plugin that finds and wraps text content in HTML files with HTML tags.

Install

npm install --save-dev gulp-html-text-wrapper

Usage

var gulp    = require('gulp'),
    wrapper = require('gulp-html-text-wrapper');

gulp.task('wrap', function() {
  return gulp.src('*/**/*.html', {base: './'})
    .pipe(wrapper({
      tagName: 'sb-i18n',
      ignoredParentsTagNames: ['style', 'script', 'dom-module', 'template']
    }))
    .pipe(gulp.dest('dist/'));
});

License

MIT

Package Sidebar

Install

npm i gulp-html-text-wrapper

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • choskim