Registry / devops / hexo-all-minifier-tilden

hexo-all-minifier-tilden

JSON →
library0.5.7jsnpmunverified

Hexo plugin that minifies HTML, CSS, JavaScript, and images in one pass. Version 0.5.7 (stable) supports Node >=10. It bundles html-minifier, clean-css, UglifyJS, and imagemin. Key differentiator: all-in-one minification with Hexo integration, plus a JS concatenation feature. No TypeScript types. Release cadence is irregular; last update 2020.

npm install hexo-all-minifier-tilden
INSTALL
IMPORT
SIG · HEXO-ALL-MINIFIER-
H
hexo-all-minifier-tilden
devopsjavascriptv0.5.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
require('hexo-all-minifier')
import hexoAllMinifier from 'hexo-all-minifier'
CommonJS only; no ESM export.
config
// In _config.yml: all_minifier: true
// Do not use hexo.config.all_minifier directly
Configuration is done via Hexo config file, not code.
hexo.extend.filter
hexo.extend.filter.register('after_generate', require('hexo-all-minifier'))
hexo.extend.filter.register('after_post_render', ...)
Register on after_generate filter for minification.

Enables all minifiers with defaults and excludes already-minified CSS.

// Install: npm install hexo-all-minifier --save // Then add to _config.yml: all_minifier: true html_minifier: enable: true css_minifier: enable: true exclude: - '*.min.css' js_minifier: enable: true mangle: true image_minifier: enable: true optimizationLevel: 2
Debug
Known issues
gotchaEmpty YAML keys for js_minifier.output or js_minifier.compress set to null instead of undefined, breaking UglifyJS options.
fix
Remove empty keys entirely from _config.yml rather than setting them to null.
affects: >=0.1.0
deprecatedGreenkeeper badge in README indicates deprecated dependency update service.
fix
Replace with Dependabot or Renovate.
affects: >=0.0.0
gotchaImage minifier may require system libraries (libtool, autoconf, nasm) on macOS; installation fails if missing.
fix
Run brew install libtool automake autoconf nasm before npm install.
affects: >=0.1.0
gotchaJS_Concator bundles all local scripts into one; can break script order if front option misconfigured.
fix
Set front: true if bundle should load first, else false for last.
affects: >=0.4.0
deprecatedUses Travis CI and codecov; pipeline may break as these services change.
fix
Migrate to GitHub Actions.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'hexo-all-minifier'
Plugin not installed or npm install failed.
fix
Run npm install hexo-all-minifier --save in your Hexo project root.
UglifyJS Error: Unexpected token: punc ())
UglifyJS may not parse modern ES6+ syntax; js_minifier options conflict.
fix
Set js_minifier.output and compress to empty YAML objects or remove if not needed.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Hexo config has undefined option all_minifier or plugin not registered.
fix
Ensure all_minifier: true is present in _config.yml.
Upgrade
Version history
0.5.7latest on npm
Audit
Dependencies
hexorequiredPeer dependency required as Hexo plugin
Agent activity
6 hits · last 30 days
node
6
Resources
hexo-all-minifier-tilden — npm install hexo-all-minifier-tilden · libregistry