build: Update SVGO to v3.0.2 & re-crush icons

svgo         2.8.0  →   3.0.2

Amending to new `cleanupIds` plugin name.
Re-crushing SVGs while at it.

Bug: T339162
Change-Id: I9804d6fa3c81e3c85e6d89e45079736d0934c465
This commit is contained in:
Volker E
2023-06-15 02:36:53 -07:00
parent 330853765d
commit e67d5bd33c
4 changed files with 129 additions and 195 deletions

View File

@@ -1,9 +1,10 @@
/**
* SVGO Configuration
* Compatible to v2.4.0+
* Compatible to v3.0.0+
* Recommended options from:
* https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
*/
module.exports = {
plugins: [
{
@@ -11,7 +12,7 @@ module.exports = {
name: 'preset-default',
params: {
overrides: {
cleanupIDs: false,
cleanupIds: false,
removeDesc: false,
removeTitle: false,
removeViewBox: false,
@@ -28,7 +29,7 @@ module.exports = {
'sortAttrs'
],
// Set whitespace according to Wikimedia Coding Conventions.
// @see https://github.com/svg/svgo/blob/v2.8.0/lib/stringifier.js#L41 for available options.
// @see https://github.com/svg/svgo/blob/main/lib/stringifier.js#L39 for available options.
js2svg: {
eol: 'lf',
finalNewline: true,