vite-plugin-minify-html

JSON →
library 1.0.2 ·javascript
verified Jun 4, 2026

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.