Minify HTML via gulp
.
This package has been depreciated in favor of gulp-htmlmin.
Install the module with: npm install gulp-htmin --save-dev
var gulp = require("gulp");
var htmin = require("gulp-htmin");
gulp.task("minify", function() {
gulp.src("src/*.html")
.pipe(htmin({collapseWhitespace: true}))
.pipe(gulp.dest("dist"))
});
See the html-minifer docs for options.
This began as a fork of gulp-htmlmin.