Minifies emitted HTML assets after Vite renders templates and resolves asset URLs.
Only builds are processed; development HTML is untouched. Other plugins running
later can still change HTML or emit additional assets.
Parameters
configuration: Options = {}
Engine options overriding whitespace collapse, conservative
collapse, preserved line breaks and comment removal (all enabled by default).
Returns Plugin
A build-only Vite plugin with a post-ordered generateBundle hook.
Minifies emitted HTML assets after Vite renders templates and resolves asset URLs. Only builds are processed; development HTML is untouched. Other plugins running later can still change HTML or emit additional assets.