A Gulp plugin to minify HTML files using html-minifier. At version 1.0.2 (latest), it wraps html-minifier and supports all its options (e.g., collapseWhitespace, removeComments). The package has been stable since 2017 with no recent updates. It requires Node >= 4.0. Compared to alternatives like gulp-minify-html, this plugin uses a more widely maintained minifier backend. However, note that the repository is archived and no longer maintained; users should consider forked or alternative plugins.
npm install gulp-mini-htmlminNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Gulp task using gulp-htmlmin to minify HTML files with whitespace collapse and comment removal.
Consider using gulp-html-minifier-terser or other actively maintained plugins.
Refer to html-minifier documentation and test outputs thoroughly.
Upgrade to gulp@4 and adjust task definitions.
Run `npm install --save-dev gulp-htmlmin` and ensure the require path is correct.
Use `var htmlmin = require('gulp-htmlmin');` or `import htmlmin from 'gulp-htmlmin';`.For Gulp 4, use `exports.minify = minify;` or `gulp.task('minify', minify);` with proper async handling.