A Mya optimizer plugin that minifies HTML using the popular html-minifier library (kangax/html-minifier). Version 1.0.0 is the current stable release. It integrates seamlessly into Mya build pipelines to reduce HTML file size. Compared to manual HTML minification, this plugin automates the process within the Mya ecosystem, leveraging the full configurability of html-minifier. Minimal dependencies and active maintenance.
npm install mya-optimizer-html-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the HTML minifier plugin within a Mya optimization pipeline.
Ensure all options are valid html-minifier options. Refer to html-minifier documentation.
Run npm install html-minifier --save-dev
Use import htmlMinifier from 'mya-optimizer-html-minifier' (default import).
Ensure that htmlMinifier(options) returns a function and you pass the returned function, not the options object.