mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-01-05 01:20:39 +02:00
Properly remove SVG attributes with SVGO (#10618)
This commit is contained in:
parent
0c847d8589
commit
19be66383c
@ -71,7 +71,7 @@ export default {
|
|||||||
// Sort the attributes on the <svg> tag
|
// Sort the attributes on the <svg> tag
|
||||||
name: 'sortAttrs',
|
name: 'sortAttrs',
|
||||||
params: {
|
params: {
|
||||||
order: ['role', 'viewBox'],
|
order: ['role', 'viewBox', 'xmlns'],
|
||||||
xmlnsOrder: 'end',
|
xmlnsOrder: 'end',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -80,7 +80,11 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'removeAttrs',
|
name: 'removeAttrs',
|
||||||
params: {
|
params: {
|
||||||
attrs: ['svg:(?!(role|viewBox|xmlns))', 'path:(?!d)', 'title:*'],
|
attrs: [
|
||||||
|
'svg:.*(?<!((role)|(viewBox)|(xmlns)))',
|
||||||
|
'path:(?!d)',
|
||||||
|
'title:*',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'removeElementsByAttr',
|
'removeElementsByAttr',
|
||||||
|
Loading…
Reference in New Issue
Block a user