mirror of https://github.com/curbengh/hexo-yam
feat: enable zstd by default
This commit is contained in:
parent
2cd5786e86
commit
5deaab2a11
|
|
@ -41,6 +41,7 @@ minify:
|
|||
svg:
|
||||
gzip:
|
||||
brotli:
|
||||
zstd:
|
||||
xml:
|
||||
json:
|
||||
```
|
||||
|
|
@ -53,6 +54,7 @@ minify:
|
|||
- **svg** - See [SVG](#svg) section
|
||||
- **gzip** - See [Gzip](#gzip) section
|
||||
- **brotli** - See [Brotli](#brotli) section
|
||||
- **zstd** - See [Zstd](#zstd) section
|
||||
- **xml** - See [XML](#xml) section
|
||||
- **json** - See [JSON](#json) section
|
||||
|
||||
|
|
@ -246,7 +248,7 @@ minify:
|
|||
```yaml
|
||||
minify:
|
||||
zstd:
|
||||
enable: false
|
||||
enable: true
|
||||
include:
|
||||
- "*.html"
|
||||
- "*.css"
|
||||
|
|
@ -261,7 +263,7 @@ minify:
|
|||
- "*.json"
|
||||
```
|
||||
|
||||
- **enable** - Enable the plugin. Defaults to `false`.
|
||||
- **enable** - Enable the plugin. Defaults to `true`.
|
||||
- **priority** - Plugin's priority. Defaults to `10`.
|
||||
- **verbose** - Verbose output. Defaults to `false`.
|
||||
- **include** - Include files. Support [wildcard](http://www.globtester.com/) pattern(s) in a string or array.
|
||||
|
|
|
|||
2
index.js
2
index.js
|
|
@ -70,7 +70,7 @@ hexo.config.minify.brotli = Object.assign({
|
|||
}, hexo.config.minify.brotli)
|
||||
|
||||
hexo.config.minify.zstd = Object.assign({
|
||||
enable: false,
|
||||
enable: true,
|
||||
priority: 10,
|
||||
verbose: false,
|
||||
include: ['*.html', '*.css', '*.js', '*.txt', '*.ttf', '*.atom', '*.stl', '*.xml', '*.svg', '*.eot', '*.json'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue