- Remove plugins that are already the default in svgo, and link to docs - Move the `removeDimensions` plugin to be next to `removeViewBox` - Add configuration to the `convertPathData` and `mergePaths` plugins to avoid an issue with over-aggressive optimization for arcto commands introduced in svgo v1.3.0. Also: - Add missing `--config` option to the svgo command in README - Remove over-aggressive optimization from the cv.svg flag
25 lines
621 B
YAML
25 lines
621 B
YAML
# Default options: https://github.com/svg/svgo#what-it-can-do
|
|
|
|
floatPrecision: 1
|
|
multipass: true
|
|
plugins:
|
|
- removeDimensions: true
|
|
- removeViewBox: false
|
|
- removeRasterImages: true
|
|
- sortAttrs: true
|
|
- removeAttrs:
|
|
attrs:
|
|
- 'font.*'
|
|
- 'opacity'
|
|
- 'paint.*'
|
|
- 'stroke.*'
|
|
- 'text.*'
|
|
- removeStyleElement: 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
|