A plugin for Pattern Lab Node that minifies and beautifies generated HTML templates using html-minifier and js-beautify. Version 1.1.1 is current. Helps reduce production code size and prevent HTML errors like empty attributes. Integrates automatically with patternlab-config.json. Released under MIT license.
npm install pattern-lab-minify-htmlNo compatibility data collected yet for this library.
Configuration example for enabling the plugin with minify and beautify options.
Install patternlab-node: `npm install patternlab-node`
Run `npm run postinstall` in your project root.
To fully disable, set 'enabled' to false instead of setting options to false.
Use the key 'pattern-lab-minify-html' in plugins object.
Use: "plugins": { "pattern-lab-minify-html": { ... } }Run `npm install patternlab-node --save-dev`
Ensure patternlab-config.json has a 'plugins' object with correct key and options.
Run `npm run postinstall` from your project root.