SVGO v2.x changed configuration to JS, amending configuration. Adding new 'minify-svg' npm script. Also re-optimize SVGs. Bug: T278656 Change-Id: I88ebed650be0d20b71bca6f15f3aa70b6b5eb42a
22 lines
475 B
JSON
22 lines
475 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"minify-svg": "svgo --config=.svgo.config.js -q -r -f resources/images/",
|
|
"test": "grunt test"
|
|
},
|
|
"devDependencies": {
|
|
"eslint-config-wikimedia": "0.20.0",
|
|
"grunt": "1.4.0",
|
|
"grunt-banana-checker": "0.9.0",
|
|
"grunt-eslint": "23.0.0",
|
|
"grunt-stylelint": "0.16.0",
|
|
"stylelint-config-wikimedia": "0.10.3",
|
|
"svgo": "2.3.0"
|
|
},
|
|
"eslintIgnore": [
|
|
"lib/**",
|
|
"resources/js/ext.uls.webfonts.repository.js",
|
|
"vendor/**"
|
|
]
|
|
}
|