mirror of https://github.com/curbengh/hexo-yam
docs(v5): syntax change in svg.plugins option
This commit is contained in:
parent
6c21cc6a9b
commit
1f95af32b7
20
README.md
20
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue