vite-plugin-minify-html
JSON →A Vite plugin to minify HTML output in production builds using html-minifier-terser. Version 1.0.2, stable, released via GitHub. Key differentiators: simple integration, full TypeScript support, leverages the robust html-minifier-terser under the hood for configurable minification (collapse whitespace, remove comments, etc.). Lightweight zero-config plugin with optional boolean or MinifyOptions argument. Requires Vite >=2.0.0 and Node >=14.0.0.
Resources
packagevite-plugin-minify-html ↗
API endpoints
full doc /v1/registry/vite-plugin-minify-html