gulp-htmlmin
JSON →Gulp plugin to minify HTML using the popular html-minifier library. Current stable version is 6.0.1, with a release cadence that appears to be low (last major release October 2017). It passes through HTML files via Gulp pipeline and supports all options of the underlying html-minifier. Compared to alternatives like gulp-minify-html, gulp-htmlmin has the same API and has been more actively maintained in the past, though it relies on an older html-minifier. This package is ideal for optimizing HTML in a Gulp workflow, reducing file size with options like collapseWhitespace, removeComments, and minifyJS.
Resources
packagegulp-htmlmin-next ↗
API endpoints
full doc /v1/registry/gulp-htmlmin-next