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.
|
- **exclude** - Exclude files. Support wildcard pattern.
|
||||||
- **level** - Optimization level. Defaults to `2`.
|
- **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'
|
- '*.min.js'
|
||||||
```
|
```
|
||||||
- **enable** - Enable the plugin. Defaults to `true`.
|
- **enable** - Enable the plugin. Defaults to `true`.
|
||||||
- **mangle** - Mangle file names. Defaults to `true`.
|
|
||||||
- **logger** - Verbose output. Defaults to `false`.
|
- **logger** - Verbose output. Defaults to `false`.
|
||||||
- **output** - Output options
|
|
||||||
- **compress** - Compress options
|
|
||||||
- **exclude** - Exclude files. Support wildcard pattern.
|
- **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).
|
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({
|
hexo.config.neat_css = Object.assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
logger: false,
|
logger: false,
|
||||||
level: 2,
|
exclude: ['*.min.css'],
|
||||||
exclude: ['*.min.css']
|
level: 2
|
||||||
}, hexo.config.neat_css)
|
}, hexo.config.neat_css)
|
||||||
|
|
||||||
// Js minifier
|
// Js minifier
|
||||||
hexo.config.neat_js = Object.assign({
|
hexo.config.neat_js = Object.assign({
|
||||||
enable: true,
|
enable: true,
|
||||||
mangle: true,
|
|
||||||
logger: false,
|
logger: false,
|
||||||
|
exclude: ['*.min.js'],
|
||||||
|
mangle: true,
|
||||||
output: {},
|
output: {},
|
||||||
compress: {},
|
compress: {}
|
||||||
exclude: ['*.min.js']
|
|
||||||
}, hexo.config.neat_js)
|
}, hexo.config.neat_js)
|
||||||
|
|
||||||
// html, css, js compression
|
// html, css, js compression
|
||||||
|
|
Loading…
Reference in New Issue