Go to file
rozbo 840a410b0c Merge branch 'master' of https://github.com/Rozbo/hexo-neat 2016-05-26 19:11:27 +08:00
lib init code 2016-05-26 19:09:41 +08:00
README.md init code 2016-05-26 19:09:41 +08:00
index.js init code 2016-05-26 19:09:41 +08:00
package.json init code 2016-05-26 19:09:41 +08:00

README.md

Hexo-all-minifier

npm version NPM Dependencies

All in one. Minifier & Optimization plugin for Hexo. Since most of the optimize plugin for HEXO have been deprecated, and HEXO has upgraded to 3.XX, so I decide to implement this plugin.

Installation

$ npm install hexo-all-minifier --save

Components

Integrate all the official minifier plugins of HEXO and a imagemin plugin:

Thanks for their works.

Options

html_minifier:
  enable: true
  exclude: 
  • enable - Enable the plugin. Defaults to true.
  • exclude: Exclude files

css_minifier:
  enable: true
  exclude: 
    - '*.min.css'
  • enable - Enable the plugin. Defaults to true.
  • exclude: Exclude files

js_minifier:
  enable: true
  mangle: true
  output:
  compress:
  exclude: 
    - '*.min.js'
  • enable - Enable the plugin. Defaults to true.
  • mangle: Mangle file names
  • output: Output options
  • compress: Compress options
  • exclude: Exclude files

image_minifier:
  enable: true
  interlaced: false
  multipass: false
  optimizationLevel: 2
  pngquant: false
  progressive: false
  • enable - Enable the plugin. Defaults to true.
  • interlaced - Interlace gif for progressive rendering. Defaults to false.
  • multipass - Optimize svg multiple times until its fully optimized. Defaults to false.
  • optimizationLevel - Select an optimization level between 0 and 7. Defaults to 2.
  • pngquant - Enable imagemin-pngquant plugin. Defaults to false.
  • progressive - Lossless conversion to progressive. Defaults to false.

To be continued