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:
|
svg:
|
||||||
gzip:
|
gzip:
|
||||||
brotli:
|
brotli:
|
||||||
|
zstd:
|
||||||
xml:
|
xml:
|
||||||
json:
|
json:
|
||||||
```
|
```
|
||||||
|
|
@ -53,6 +54,7 @@ minify:
|
||||||
- **svg** - See [SVG](#svg) section
|
- **svg** - See [SVG](#svg) section
|
||||||
- **gzip** - See [Gzip](#gzip) section
|
- **gzip** - See [Gzip](#gzip) section
|
||||||
- **brotli** - See [Brotli](#brotli) section
|
- **brotli** - See [Brotli](#brotli) section
|
||||||
|
- **zstd** - See [Zstd](#zstd) section
|
||||||
- **xml** - See [XML](#xml) section
|
- **xml** - See [XML](#xml) section
|
||||||
- **json** - See [JSON](#json) section
|
- **json** - See [JSON](#json) section
|
||||||
|
|
||||||
|
|
@ -246,7 +248,7 @@ minify:
|
||||||
```yaml
|
```yaml
|
||||||
minify:
|
minify:
|
||||||
zstd:
|
zstd:
|
||||||
enable: false
|
enable: true
|
||||||
include:
|
include:
|
||||||
- "*.html"
|
- "*.html"
|
||||||
- "*.css"
|
- "*.css"
|
||||||
|
|
@ -261,7 +263,7 @@ minify:
|
||||||
- "*.json"
|
- "*.json"
|
||||||
```
|
```
|
||||||
|
|
||||||
- **enable** - Enable the plugin. Defaults to `false`.
|
- **enable** - Enable the plugin. Defaults to `true`.
|
||||||
- **priority** - Plugin's priority. Defaults to `10`.
|
- **priority** - Plugin's priority. Defaults to `10`.
|
||||||
- **verbose** - Verbose output. Defaults to `false`.
|
- **verbose** - Verbose output. Defaults to `false`.
|
||||||
- **include** - Include files. Support [wildcard](http://www.globtester.com/) pattern(s) in a string or array.
|
- **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.brotli)
|
||||||
|
|
||||||
hexo.config.minify.zstd = Object.assign({
|
hexo.config.minify.zstd = Object.assign({
|
||||||
enable: false,
|
enable: true,
|
||||||
priority: 10,
|
priority: 10,
|
||||||
verbose: false,
|
verbose: false,
|
||||||
include: ['*.html', '*.css', '*.js', '*.txt', '*.ttf', '*.atom', '*.stl', '*.xml', '*.svg', '*.eot', '*.json'],
|
include: ['*.html', '*.css', '*.js', '*.txt', '*.ttf', '*.atom', '*.stl', '*.xml', '*.svg', '*.eot', '*.json'],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue