choskim / gulp-html-text-wrapper

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:JavaScript 100.0%