Netlify build plugin to minify all HTML files as a post-processing step using Terser HTMLMinifier (v0.1.2). It runs after the build and reduces HTML file sizes by removing whitespace, comments, optional tags, and minifying inline CSS and JS. Configuration is done via netlify.toml with full HTMLMinifier options support. Limited community plugin with no active release cadence; alternatives include official Netlify plugins or build scripts.
npm install netlify-plugin-terser-html-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Netlify plugin configuration in netlify.toml with minifier options.
Verify netlify.toml publish directory is correct.
Check html-minifier-terser documentation for option compatibility.
npm i -D netlify-plugin-terser-html-minifier
Use exact key 'minifierOptions' (case-sensitive).