mirror of https://github.com/curbengh/hexo-yam
docs: rearrange options
This commit is contained in:
parent
94a8f90c2b
commit
ce973f940f
|
@ -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).
|
||||
|
||||
|
|
10
index.js
10
index.js
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue