0.0.1 • Published 7 years ago
gulp-html-prefix v0.0.1
gulp-html-prefix
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
0.0.1
7 years ago