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

View File

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