hexo+matery博客搭建之访问加速


代码压缩优化

hexo-neat插件

根目录安装插件

npm install hexo-neat --save

将以下配置添加至站点配置文件_config.yaml末尾

#hexo-neat 优化提速插件(去掉HTML、css、js的blank字符)
neat_enable: true
neat_html:
  enable: true
  exclude:
    - '**/*.md'   #避免markdown 语法的代码块消失
neat_css:
  enable: true
  exclude:
    - '**/*.min.css'
neat_js:
  enable: true
  mangle: true
  output:
  compress:
  exclude:
    - '**/*.min.js'
    - '**/**/instantpage.js'
    - '**/matery.js'

参考

Hexo进阶之各种优化


  目录
}