Minify html with minimize.
This package has been deprecated in favor of
gulp-htmlmin, which should be faster and more comprehensive.
Remember, this plugin is only a thin wrapper around
If you are having HTML related issues, please consider looking into
minimize/issues before raising your issue here.
npm install --save-dev gulp-minify-css
var minifyHTML = require'gulp-minify-html';
Options are directly passed to the
minimize constructor, which means all
minimize options are available.
var gulp = require'gulp';var minifyHTML = require'gulp-minify-html';gulptask'minify-html'return gulpsrc'src/*.html'pipeminifyHTML empty: truepipegulpdest'dist';;