feat: enable zstd by default

This commit is contained in:
MDLeom 2025-08-04 12:16:04 +00:00
parent 2cd5786e86
commit 5deaab2a11
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
2 changed files with 5 additions and 3 deletions

View File

@ -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.

View File

@ -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'],