gulp-html-minifier-terser
JSON →Gulp plugin to minify HTML using html-minifier-terser. Version 8.0.0 requires Node >=24. It provides a stream-friendly wrapper around html-minifier-terser, which itself is a fork of html-minifier that uses the terser parser for improved accuracy and performance. The plugin supports all options from html-minifier-terser, such as collapseWhitespace, removeComments, and minifyJS. Released under MIT, with maintenance kept in sync with upstream changes. Key differentiator from alternatives like gulp-htmlmin is the use of terser for parsing, which handles modern HTML constructs more reliably.
Resources
packagegulp-html-minifier-terser ↗