Registry / devops / mimosa-minify-html

mimosa-minify-html

JSON →
library0.5.0jsnpmunverified

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-html
INSTALL
IMPORT
SIG · MIMOSA-MINIFY-HTML
M
mimosa-minify-html
devopsjavascriptv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mimosa-minify-html
Add 'minify-html' to your Mimosa modules list in mimosa-config.js
require('mimosa-minify-html') directly
This is a Mimosa plugin, not a standalone library. It is loaded by Mimosa's module system.

Shows how to enable and configure the minify-html module in a Mimosa project.

// mimosa-config.js exports.config = { modules: ['copy', 'server-watch', 'minify-html'], minifyHtml: { options: { collapseWhitespace: true, removeComments: true, removeEmptyAttributes: true } } };
Debug
Known issues
deprecatedThis package is deprecated and no longer maintained. The Mimosa build tool itself is also inactive.
fix
Consider using a modern build tool like Webpack, Gulp, or Vite with an HTML minification plugin.
affects: >=0
Errors
Common errors & fixes
Module 'minify-html' not found in module list
The module name must be 'minify-html', not the package name 'mimosa-minify-html'.
fix
Use 'minify-html' in the modules array of mimosa-config.js.
mimosa-minify-html is not a function
Trying to require() the package as a Node module instead of adding it to Mimosa's module list.
fix
Add 'minify-html' to the modules array in mimosa-config.js, not require() it.
Upgrade
Version history
0.5.0latest on npm
Audit
Dependencies
html-minifierrequiredruntime dependency for HTML minification
Agent activity
2 hits · last 30 days
node
2
Resources
mimosa-minify-html — npm install mimosa-minify-html · libregistry