build: Update 'svgo' to latest v3.2.0 and re-minify SVGs
The latest update of 'svgo' dependency includes three optimizations on converting path commands, which - improves closing paths and how we determine if to use absolute or relative commands. - round arc or convert to lines based on the geometric sagitta - convert cubic Bézier curves to quadratic Bézier curves where possible Also unifiying npm command to qua standard notation `minify:svg`. Bug: T354875 Change-Id: I0c712a4cec011ddda3a55caf4ecf493e1e00f3c8
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build-lib": "./scripts/build.sh",
|
||||
"minify-svg": "svgo --config=.svgo.config.js --quiet --recursive --folder resources/images/",
|
||||
"minify:svg": "svgo --config=.svgo.config.js --quiet --recursive --folder resources/images/",
|
||||
"test": "grunt test"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -16,7 +16,7 @@
|
||||
"postcss-less": "6.0.0",
|
||||
"sfnt2woff": "^1.0.1",
|
||||
"stylelint-config-wikimedia": "0.16.1",
|
||||
"svgo": "3.0.2"
|
||||
"svgo": "3.2.0"
|
||||
},
|
||||
"eslintIgnore": [
|
||||
"lib/**",
|
||||
|
||||
Reference in New Issue
Block a user