gulp-cleanhtml

1.0.3 • Public • Published

gulp-cleanhtml NPM version Build Status

Cleans your HTML using htmlclean

Usage

First, install gulp-cleanhtml as a development dependency:

npm install --save-dev gulp-cleanhtml

Then, add it to your gulpfile.js:

var cleanhtml = require('gulp-cleanhtml');
 
gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(cleanhtml())
    .pipe(gulp.dest('build/index.html'));
});

The above will remove unneeded whitespaces, line-breaks, comments, etc from the HTML.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1,738
    • latest

Version History

Package Sidebar

Install

npm i gulp-cleanhtml

Weekly Downloads

366

Version

1.0.3

License

BSD-2-Clause

Last publish

Collaborators

  • hemanth