A Hexo plugin that minifies static assets (HTML, CSS, JS, images, fonts) using esbuild. Version 0.1.7, stable with occasional updates. Differentiates from other Hexo minifiers by leveraging esbuild's speed for JS/CSS minification, but has known issues with some configurations and lacks comprehensive documentation.
npm install esbuild-hexo-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the package as a dev dependency, adds a build script that runs hexo generate then the minifier, and executes it.
Review output assets and manually verify minification; consider using quotes in configuration if paths have spaces.
Install locally with --save-dev and run via npx or npm script.
If customization is needed, consider alternative Hexo minifier plugins like hexo-all-minifier.
Disable image/font minification by not adding those file types, or use dedicated tools like gulp-imagemin.
Run 'npx esbuild-hexo-minifier' instead of previous script name if upgrading from below 0.1.5.
Install locally: npm install esbuild-hexo-minifier --save-dev, then use npx esbuild-hexo-minifier or define script in package.json.
Run npm install esbuild --save-dev to install esbuild alongside the minifier.
Avoid global install; use local dev dependency and run via npm script.
Skip image/font minification by not including those file types in the processed assets, or use dedicated image minification tools.