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