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:
Volker E
2024-01-16 14:54:33 +01:00
parent 0b7ae1dce6
commit e094773671
13 changed files with 34 additions and 32 deletions

View File

@@ -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/**",