0.1.1 • Published 8 years ago

gulp-html-text-wrapper v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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