Registry / devops / yarn-html-minifier

yarn-html-minifier

JSON →
library0.6.1jsnpmunverified

A Yarn plugin that integrates html-minifier into the Yarn workflow, allowing HTML minification as part of package management commands. Version 0.6.1 is the latest, but the package appears unmaintained with no recent releases. Key differentiator: runs html-minifier via Yarn plugin system; alternatives include direct html-minifier CLI or build tool integrations. Currently in maintenance mode with no active development.

npm install yarn-html-minifier
INSTALL
IMPORT
SIG · YARN-HTML-MINIFIER
Y
yarn-html-minifier
devopsjavascriptv0.6.1
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.

yarn-html-minifier
yarn plugin add yarn-html-minifier
npm install yarn-html-minifier
This is a Yarn plugin, installed via 'yarn plugin add', not npm install.

Shows how to install the Yarn plugin and run html-minifier on an HTML file.

yarn plugin add yarn-html-minifier # Then use as a Yarn command: yarn html-minifier input.html --output output.html --remove-comments --collapse-whitespace
Debug
Known issues
deprecatedPackage is no longer actively maintained. Consider using html-minifier directly.
fix
Use html-minifier CLI directly: npx html-minifier input.html -o output.html
affects: >=0.6.1
gotchaMust be installed as a Yarn plugin, not a regular npm dependency.
fix
Use 'yarn plugin add' instead of 'npm install' or 'yarn add'.
affects: all
Errors
Common errors & fixes
ERR_YARN_PLUGIN_INSTALL_FAILED
Attempting to install using 'yarn add' or 'npm install' instead of 'yarn plugin add'
fix
Run 'yarn plugin add yarn-html-minifier'
Error: Command not found: html-minifier
Plugin not correctly installed, or Yarn version incompatible
fix
Ensure Yarn >=2 and install with 'yarn plugin add yarn-html-minifier'
Upgrade
Version history
0.6.1latest on npm
Audit
Dependencies
html-minifierrequiredCore dependency providing the HTML minification functionality
Agent activity
13 hits · last 30 days
node
12
Resources
yarn-html-minifier — npm install yarn-html-minifier · libregistry