HTML minifier plugin for component-builder2.js. Version 1.0.0 is the current stable release, last updated in 2014. This package integrates html-minifier into the component-builder2 build pipeline to minify HTML templates. It requires component-builder2 as a peer dependency and wraps html-minifier. Key differentiator: designed specifically for the component-builder2 ecosystem, but has no default options — minification only occurs if options are passed.
npm install builder-html-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up component-builder2 to minify HTML templates with recommended options.
Always pass at least the recommended minifierOptions object to the minifier function.
Consider using a modern build tool like webpack with html-loader or html-minifier directly.
Ensure component-builder2 is installed and required before using this plugin.
Run 'npm install component-builder2'.
Use 'var minifier = require('builder-html-minifier');' without destructuring.Ensure you call 'require('component-builder2')' and pass the correct 'branches' and 'options' to build.scripts().