diff --git a/README.md b/README.md index d464efc..6331e1c 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ neat_svg: - **logger** - Verbose output. Defaults to `false`. - **include** - Include files. Support wildcard pattern. - Exclude `*.min.svg` by default. -- **plugin** - Plugin options. +- **plugins** - Plugin options. - To retain comments, `plugins: [{removeComments: false}]`. For more options, see [svgo](https://github.com/svg/svgo). diff --git a/index.js b/index.js index 13b53f8..9ecff66 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ if (hexo.config.neat_enable === true) { enable: true, logger: false, include: ['*.svg', '!*.min.svg'], - plugin: [] + plugins: [] }, hexo.config.neat_svg) // gzip compression