{"id":41221,"library":"hexo-all-minifier","title":"Hexo All Minifier","description":"Hexo plugin that minifies HTML, CSS, JS, and images in one package. Version 0.5.7 supports Node >=10. Low maintenance with infrequent updates since 2019. Integrates with Hexo build pipeline via configuration flags. Differentiator: all-in-one minification with options per asset type (html, css, js, image), plus a JS concator feature to bundle scripts. Alternatives like hexo-filter-optimize require multiple plugins.","status":"maintenance","version":"0.5.7","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/chenzhutian/hexo-all-minifier","tags":["javascript","hexo","filter","optimize","minify"],"install":[{"cmd":"npm install hexo-all-minifier","lang":"bash","label":"npm"},{"cmd":"yarn add hexo-all-minifier","lang":"bash","label":"yarn"},{"cmd":"pnpm add hexo-all-minifier","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core peer dependency; plugin only works within Hexo","package":"hexo","optional":false}],"imports":[{"note":"Must be installed as a runtime dependency, not devDependency, for Hexo to load it.","wrong":"npm install hexo-all-minifier --save-dev","symbol":"hexo-all-minifier","correct":"npm install hexo-all-minifier --save"},{"note":"The top-level config is a boolean, not an object. Enable specific minifiers with their own sections.","wrong":"all_minifier:\n  enable: true","symbol":"all_minifier config","correct":"all_minifier: true"},{"note":"Use 'enable' not 'enabled'. Boolean values are required.","wrong":"html_minifier:\n  enabled: true","symbol":"HTML minifier config","correct":"html_minifier:\n  enable: true\n  exclude:\n    - '*.min.html'"}],"quickstart":{"code":"// 1. Install\n// npm install hexo-all-minifier --save\n\n// 2. In _config.yml:\nall_minifier: true\nhtml_minifier:\n  enable: true\n  silent: false\ncss_minifier:\n  enable: true\n  exclude:\n    - '*.min.css'\njs_minifier:\n  enable: true\n  mangle: true\n  exclude:\n    - '*.min.js'\nimage_minifier:\n  enable: true\n  optimizationLevel: 2\n  progressive: true\n\n// 3. Run: hexo generate","lang":"yaml","description":"Configuration to enable all minifiers with basic exclusions for already minified files."},"warnings":[{"fix":"Remove empty 'output:' or 'compress:' lines from _config.yml entirely.","message":"JS minifier 'output' and 'compress' options: setting them to empty in YAML results in null, not undefined, breaking the minification.","severity":"gotcha","affected_versions":">=0.4.0"},{"fix":"Install build dependencies: brew install libtool automake autoconf nasm","message":"Image minifier uses imagemin-pngquant only when pngquant:true, but requires external binaries on macOS (libtool, automake, autoconf, nasm).","severity":"gotcha","affected_versions":"all"},{"fix":"Consider migrating to hexo-filter-optimize or manually auditing dependencies.","message":"Greenkeeper badge indicates automated dependency checking was used; project has not been updated since 2019 and may have vulnerable dependencies.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure all local scripts are included; use front:true to change order if needed.","message":"JS_Concator feature (v0.4.0) bundles local scripts but excludes remote/absolute URLs; bundle attached to end of body unless front:true.","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'0.5.7':17 '10':20 '2019':27 'all-in-on':37 'altern':59 'asset':45 'build':31 'bundl':57 'concat':54 'configur':34 'css':9,48 'differenti':36 'featur':55 'filter':63,70 'flag':35 'hexo':1,4,30,62,69 'hexo-filter-optim':61 'html':8,47 'imag':12,50 'infrequ':24 'integr':28 'javascript':68 'js':10,49,53 'like':60 'low':21 'mainten':22 'minif':41 'minifi':3,7,72 'multipl':66 'node':19 'one':14,40 'optim':64,71 'option':43 'packag':15 'per':44 'pipelin':32 'plugin':5,67 'plus':51 'requir':65 'script':58 'sinc':26 'support':18 'type':46 'updat':25 'version':16 'via':33","created_at":"2026-06-04T18:51:21.662295+00:00","updated_at":"2026-06-04T18:51:21.662295+00:00","problems":[{"fix":"Remove empty 'output:' and 'compress:' lines from _config.yml","cause":"Empty 'output' or 'compress' in YAML config for js_minifier, passing null to UglifyJS.","error":"TypeError: Cannot read property 'replace' of undefined"},{"fix":"Run: npm install imagemin --save-dev","cause":"Missing peer dependency imagemin when image_minifier is enabled.","error":"Error: Cannot find module 'imagemin'"},{"fix":"Install build dependencies: brew install libtool automake autoconf nasm (macOS) or apt-get install build-essential nasm (Linux)","cause":"Missing system libraries for pngquant or other image tools on macOS/Linux.","error":"hexo-all-minifier: Image minification failed - /path/to/image.png"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/chenzhutian/hexo-all-minifier#readme","github":"ssh://git@github.com/chenzhutian/hexo-all-minifier","docs":null,"changelog":null,"pypi":null,"npm":"hexo-all-minifier","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}