hexo-minifer

CSS and JavaScript minification plugin for Hexo

npm install hexo-minifer
2 downloads in the last week
9 downloads in the last month

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.

Usage

Install

npm install hexo-minifer --save

Update

npm update

Uninstall

npm uninstall hexo-minifer

Usage

hexo minify [-g|-generate]

With the argument: -g or -generate, or public folder isnot exist, minifier will generate files before minification.

About HTML minifier

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.

npm loves you