astro-minify-html

JSON →
library 0.1.1 ·javascript
verified Jun 4, 2026

An Astro integration that minifies static HTML output using html-minifier-terser at build time. Current stable version is 0.1.1, released as an early-stage package with no breaking changes reported. It provides a simple integration function that wraps html-minifier-terser options, allowing removal of comments, whitespace, and other optimizations. Unlike raw usage of html-minifier-terser, this integration automatically hooks into Astro's build pipeline and applies minification to all generated HTML pages with zero configuration required.