docs: rearrange options

This commit is contained in:
weyusi 2019-04-23 13:31:04 +09:30
parent 94a8f90c2b
commit ce973f940f
2 changed files with 9 additions and 9 deletions

View File

@ -57,7 +57,7 @@ neat_css:
- **exclude** - Exclude files. Support wildcard pattern.
- **level** - Optimization level. Defaults to `2`.
For more options, see
For more options, see [clean-css](https://github.com/jakubpawlowicz/clean-css).
----------
@ -68,11 +68,11 @@ neat_js:
- '*.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. Support wildcard pattern.
- **mangle** - Mangle file names. Defaults to `true`.
- **output** - Output options.
- **compress** - Compress options.
For more options, see [Terser](https://github.com/terser-js/terser).

View File

@ -19,18 +19,18 @@ if (hexo.config.neat_enable === true) {
hexo.config.neat_css = Object.assign({
enable: true,
logger: false,
level: 2,
exclude: ['*.min.css']
exclude: ['*.min.css'],
level: 2
}, hexo.config.neat_css)
// Js minifier
hexo.config.neat_js = Object.assign({
enable: true,
mangle: true,
logger: false,
exclude: ['*.min.js'],
mangle: true,
output: {},
compress: {},
exclude: ['*.min.js']
compress: {}
}, hexo.config.neat_js)
// html, css, js compression