A Hexo plugin that minifies output HTML files using HTML Minifier. Current stable version is 1.0.2. This plugin integrates into Hexo's filter system, allowing configuration of HTML minification options such as whitespace collapse, comment removal, and attribute quote removal. It is specifically designed for Hexo static site generators and is not a general-purpose minifier. Alternative standalone minifiers include html-minifier-terser.
npm install hexo-filter-htmlminifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the plugin and configures HTML minification options in Hexo's _config.yml file.
Set priority to a high value like 10000 to run after others.
Refer to HTML Minifier documentation for valid options.
Use 'html_minifier:' in _config.yml.
Test after Hexo updates; consider alternative plugins like hexo-html-minify if needed.
Run 'npm install hexo-filter-htmlminifier --save' to install both the plugin and its dependency.
Check the spelling of options; refer to HTML Minifier's documentation for supported options.
Set priority to 10000 or higher in config to ensure this filter runs after others.