hexo 配置 压缩
hexo 优化压缩
hexo-neat
参考:https://github.com/rozbo/hexo-neat
安装模块
1
| $ npm install hexo-neat --save
|
_config.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
neat_enable: true
neat_html: enable: true exclude:
neat_css: enable: true exclude: - '**/*.min.css'
neat_js: enable: true mangle: true output: compress: exclude: - '**/*.min.js' - '**/jquery.fancybox.pack.js' - '**/index.js'
|