0.0.1 • Published 7 years ago

gulp-html-prefix v0.0.1

Weekly downloads
12
License
MIT
Repository
github
Last release
7 years ago

gulp-html-prefix Build Status

Gulp plugin to prefix classes in a HTML file.

Installation

npm install --save gulp-html-prefix

Usage

var gulp        = require('gulp'),
    classPrefix = require('gulp-html-prefix');

gulp.task('prefix', function() {
  return gulp.src('my-file.html')
    .pipe(classPrefix('my-class-prefix-'))
    .pipe(gulp.dest('dist'));
});

gulp.task('default', ['prefix']);

Using the ignored option:

var gulp        = require('gulp'),
    classPrefix = require('gulp-class-prefix');

gulp.task('prefix', function() {
  return gulp.src('my-file.html')
  .pipe(classPrefix('my-class-prefix-', { ignored: [/\ng-/, 'some-class'] }))
  .pipe(gulp.dest('dist'));
});

gulp.task('default', ['prefix']);

License

MIT