Yet Another Minifier (YAM) is a Hexo plugin for minifying and compressing HTML, JS, CSS, SVG, XML, and JSON in static sites. Current stable version is 9.0.0 (released 2024). It supports Gzip, Brotli, and Zstd compression, with configurable options per file type. Unlike similar plugins, YAM offers extensive per-engine fine-tuning and integrates with Hexo's renderer pipeline. It requires Node >= 18.12.0 and is actively maintained by curbengh.
npm install hexo-yamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configuration for hexo-yam in Hexo's _config.yml, enabling minification and optional compression.
Upgrade Node.js to >=18.12.0 and review minifier options in _config.yml.
Use the 'exclude' option to skip specific files or paths.
Replace 'uglify' with 'terser' in your config.
Install iltorb or use CLI tools; see docs for details.
Use the nested 'html.minifier' syntax as shown in quickstart.
Run 'npm install --save-dev html-minifier' or add it to package.json.
Run 'hexo clean && hexo generate' before deploying or serving.
Check clean-css documentation and adjust options (e.g., 'level: 2').
Ensure all source files exist and are readable; exclude broken files.