Go to file
weyusi 0022702822 Don't parse irrelevent options to uglifyjs 2018-09-27 17:40:38 +09:30
lib Don't parse irrelevent options to uglifyjs 2018-09-27 17:40:38 +09:30
.gitignore Update dependency 2018-09-27 14:57:16 +09:30
.npmignore Update formatting 2018-09-27 16:31:14 +09:30
.travis.yml Run travis on every branch 2018-09-27 16:59:59 +09:30
README.md Remove greenkeeper badge temporarily 2018-09-27 17:25:09 +09:30
index.js Add a print log configuration switch to solve compilation performance problems 2018-06-29 16:08:47 +08:00
package-lock.json Update dependency 2018-09-27 14:57:16 +09:30
package.json Update dependency 2018-09-27 14:57:16 +09:30

README.md

Hexo-yam

npm version Build Status NPM Dependencies Known Vulnerabilities

This project is based on hexo-neat

Yet Another Minifier for Hexo.

The original package has not been updated for a while. Its outdated dependencies suffer from minor vulnerability.

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 - Print log switch. Defaults to true.
  • exclude: Exclude files Note: there are so many params please see 'HTMLMinifier'

neat_css:
  enable: true
  exclude:
    - '*.min.css'
  • enable - Enable the plugin. Defaults to true.
  • logger - Print log switch. Defaults to true.
  • exclude: Exclude files

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

Credits

All credits go to the following work: