Skip to content

Commit 79f0e95

Browse files
committed
Expand SVG attribute removal list in SVGO config
Added 'data', 'fill-rule', and 'xml' to the list of attributes removed by the SVGO 'removeAttrs' plugin to further optimize SVG files.
1 parent e5f515d commit 79f0e95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

svgo.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
{
1010
name: 'removeAttrs',
1111
params: {
12-
attrs: '(color|font|opacity|paint|stroke|text).*'
12+
attrs: '(color|data|fill-rule|font|opacity|paint|stroke|text|xml).*'
1313
}
1414
},
1515
'convertStyleToAttrs',

0 commit comments

Comments
 (0)