DEPRECATED
Please use hexo-html-minifier and hexo-clean-css instead.
hexo-generator-minify
A plugin for Hexo to generate static site with minified CSS and Javascript resources.
The plugin process file with the .css
or .js
extension, files containing the .min
or .pack
suffix in their name will be ignored.
Usage
Install
npm install hexo-generator-minify --save
Update
npm update
Uninstall
npm uninstall hexo-generator-minify
Usage
hexo gm
Options:
--cssSafe
: Skip dangerous transformations while minimizing CSS
More info
The hexo-generator-minify plugin borrows a lot from hexo-minifer by ChrisYip. Explore other Hexo plugins.