gulp-prune-html

0.1.0 • Public • Published

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.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gulp-prune-html

    Weekly Downloads

    4

    Version

    0.1.0

    License

    BSD-2-Clause

    Last publish

    Collaborators

    • hemanth