Merge pull request #4 from waldyrious/re-optimize-flags
Update svgo.yml and disable problematic arcto optimization
This commit is contained in:
commit
55819c65be
3 changed files with 12 additions and 13 deletions
|
|
@ -41,7 +41,7 @@ First, edit the relevant SVG files in the `flags/` directory.
|
||||||
Then run `svgo` to optimize the SVG files:
|
Then run `svgo` to optimize the SVG files:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
svgo ./flags --recursive
|
svgo ./flags --recursive --config=svgo.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
Then commit the changes, and submit them as a pull request.
|
Then commit the changes, and submit them as a pull request.
|
||||||
|
|
|
||||||
21
svgo.yml
21
svgo.yml
|
|
@ -1,20 +1,12 @@
|
||||||
|
# Default options: https://github.com/svg/svgo#what-it-can-do
|
||||||
|
|
||||||
floatPrecision: 1
|
floatPrecision: 1
|
||||||
multipass: true
|
multipass: true
|
||||||
plugins:
|
plugins:
|
||||||
- removeTitle: true
|
- removeDimensions: true
|
||||||
- removeDesc: true
|
|
||||||
- removeUselessDefs: true
|
|
||||||
- removeHiddenElems: true
|
|
||||||
- removeViewBox: false
|
- removeViewBox: false
|
||||||
- removeUnknownsAndDefaults: true
|
|
||||||
- removeUselessStrokeAndFill: true
|
|
||||||
- removeUnusedNS: true
|
|
||||||
- cleanupIDs: true
|
|
||||||
- cleanupNumericValues: true
|
|
||||||
- collapseGroups: true
|
|
||||||
- removeRasterImages: true
|
- removeRasterImages: true
|
||||||
- sortAttrs: true
|
- sortAttrs: true
|
||||||
- removeDimensions: true
|
|
||||||
- removeAttrs:
|
- removeAttrs:
|
||||||
attrs:
|
attrs:
|
||||||
- 'font.*'
|
- 'font.*'
|
||||||
|
|
@ -24,3 +16,10 @@ plugins:
|
||||||
- 'text.*'
|
- 'text.*'
|
||||||
- removeStyleElement: true
|
- removeStyleElement: true
|
||||||
- removeScriptElement: true
|
- removeScriptElement: true
|
||||||
|
# Avoid optimization that breaks some editors/viewers.
|
||||||
|
# For context, see https://github.com/svg/svgo/issues/1137
|
||||||
|
# and https://github.com/HatScripts/circle-flags/pull/4.
|
||||||
|
- convertPathData:
|
||||||
|
noSpaceAfterFlags: false
|
||||||
|
- mergePaths:
|
||||||
|
noSpaceAfterFlags: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue