build: Update SVGO to latest v2.3.0 and re-optimize SVGs

SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-optimize SVGs.

Bug: T278656
Change-Id: I88ebed650be0d20b71bca6f15f3aa70b6b5eb42a
This commit is contained in:
Volker E
2021-05-18 04:17:32 -07:00
committed by James D. Forrester
parent 4afb27e85d
commit 8354e280b6
8 changed files with 818 additions and 1597 deletions

View File

@@ -1,6 +1,7 @@
{
"private": true,
"scripts": {
"minify-svg": "svgo --config=.svgo.config.js -q -r -f resources/images/",
"test": "grunt test"
},
"devDependencies": {
@@ -9,8 +10,8 @@
"grunt-banana-checker": "0.9.0",
"grunt-eslint": "23.0.0",
"grunt-stylelint": "0.16.0",
"grunt-svgmin": "5.0.0",
"stylelint-config-wikimedia": "0.10.3"
"stylelint-config-wikimedia": "0.10.3",
"svgo": "2.3.0"
},
"eslintIgnore": [
"lib/**",