docs(v5): syntax change in svg.plugins option

This commit is contained in:
MDLeom 2021-04-25 08:41:23 +00:00
parent 6c21cc6a9b
commit 1f95af32b7
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
1 changed files with 12 additions and 8 deletions

View File

@ -13,7 +13,7 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J
## Table of contents ## Table of contents
- [Version 4](#version-4) - [Version 5](#version-5)
- [Installation](#installation) - [Installation](#installation)
- [Options](#options) - [Options](#options)
- [HTML](#html) - [HTML](#html)
@ -27,16 +27,20 @@ Yet Another Minifier for Hexo. Minify and compress HTML, JS, CSS, SVG, XML and J
- [Globbing](#globbing) - [Globbing](#globbing)
- [HTTP Compression](#http-compression) - [HTTP Compression](#http-compression)
## Version 4 ## Version 5
In v4, `logger:` option has been renamed to `verbose:` In v5, `svg.plugins:` option should follow svgo v2+ syntax:
Migrate:
``` diff ``` diff
minify: minify:
html: svg:
- logger: true plugins:
+ verbose: true - - removeComments: false
- - cleanupIDs: false
+ - name: 'removeComments'
+ active: false
+ - name: 'cleanupIDs'
+ active: false
``` ```
## Installation ## Installation