A Mimosa module that minifies HTML files using html-minifier. Current stable version is 0.5.0. It is part of the Mimosa build tool ecosystem and activates during 'mimosa build' or 'mimosa watch' when the --minify flag is enabled. Unlike standalone minifiers, it integrates seamlessly into Mimosa's module system and is automatically installed by Mimosa. It supports configurable options passed directly to html-minifier, allowing fine-grained control over minification behavior.
npm install mimosa-minify-htmlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to enable and configure the minify-html module in a Mimosa project.
Consider using a modern build tool like Webpack, Gulp, or Vite with an HTML minification plugin.
Use 'minify-html' in the modules array of mimosa-config.js.
Add 'minify-html' to the modules array in mimosa-config.js, not require() it.