0.1.0 • Published 9 years ago

gulp-prune-html v0.1.0

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
9 years ago

gulp-prune-html

NPM version Build Status

Prune your HTML using https://github.com/thlorenz/prune-html

Usage

First, install gulp-prune-html as a development dependency:

npm install --save-dev gulp-prune-html

Then, add it to your gulpfile.js:

var prune-html = require('gulp-prune-html');

gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(prune-html(['h1', '.details', 'h3'])
    .pipe(gulp.dest('build'));
});

Prune HTML file based on the css selectors.