Skip to content

hemanth/gulp-prune-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Prune HTML file based on the css selectors.

Resources

Stars

Watchers

Forks

Packages

No packages published