gulp-htmlmin
gulp plugin to minify HTML.
Issues with the HTML parser and output must be reported on the html-minifier issue tracker.
npm
Install withnpm i gulp-htmlmin --save-dev
Usage
var gulp = require('gulp');
var htmlmin = require('gulp-htmlmin');
gulp.task('minify', function() {
return gulp.src('src/*.html')
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest('dist'));
});
See the html-minifier docs for options.
Run tests
Install dev dependencies:
npm i && mocha
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Authors
Jon Schlinkert
Shinnosuke Watanabe
License
Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 10, 2015.