diff --git a/README.md b/README.md index 1276128..731e309 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/index.js b/index.js index 5294e56..340f0d7 100644 --- a/index.js +++ b/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'],