CSS and JavaScript minifier plugin for Hexo
This plugin allows you to minify all the CSS and JavaScript files.
Note: files must end with .css
or .js
and files with .min.
will be ignored.
npm install hexo-minifer --save
npm update
npm uninstall hexo-minifer
hexo minify [-g|-generate]
With the argument: -g
or -generate
, or public
folder isnot exist, minifier will generate files before minification.
For now, there's no suitable HTML minifier for Hexo, I recommend to use templating engine that outputs minified HTML file, e.g. Jade, read more on Hexo wiki.