Go to file
weyusi 486c37845b v1.0.3 2018-10-27 18:39:34 +10:30
lib refactor: var to let/const 2018-10-26 15:27:23 +10:30
.gitignore Remove package-lock.json 2018-10-26 13:16:08 +10:30
.npmignore Update formatting 2018-09-27 16:31:14 +09:30
.snyk Update snyk policy 2018-09-30 18:01:01 +09:30
.travis.yml Whitelist greenkeeper branches 2018-10-25 16:09:01 +10:30
README.md Update readme formatting 2018-10-26 15:36:58 +10:30
index.js refactor: remove object-assign ponyfill 2018-10-27 18:38:12 +10:30
package.json v1.0.3 2018-10-27 18:39:34 +10:30

README.md

Hexo-yam

npm version Build Status NPM Dependencies Known Vulnerabilities Greenkeeper badge

This project is based on hexo-neat

Yet Another Minifier for Hexo. Minify and compress html, js and css. Support gzip and brotli compressions.

The original package has not been updated for a while. I update the dependencies and add compression support.

All the options are the same, so you can use this as a drop-in replacement.

Installation

$ npm install hexo-yam --save

Usage

To enable this plugin, insert the following to _config.yml:

neat_enable: true

For further customization, see below.

Options

neat_html:
  enable: true
  exclude:
  • enable - Enable the plugin. Defaults to true.
  • logger - Verbose output. Defaults to false.
  • exclude - Exclude files

For more options, see HTMLMinifier.


neat_css:
  enable: true
  exclude:
    - '*.min.css'
  • enable - Enable the plugin. Defaults to true.
  • logger - Verbose output. Defaults to false.
  • exclude - Exclude files

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

For more options, see UglifyJS.


neat_gzip:
  enable: true
  • enable - Enable the plugin. Defaults to true.
  • logger - Verbose output. Defaults to false.

neat_brotli:
  enable: true
  • enable - Enable the plugin. Defaults to true.
  • logger - Verbose output. Defaults to false.

Credits

All credits go to the following work: