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.
This commit is contained in:
HatScripts 2025-12-06 21:55:56 +11:00
parent e5f515dbab
commit 79f0e95c8f

View file

@ -9,7 +9,7 @@ module.exports = {
{
name: 'removeAttrs',
params: {
attrs: '(color|font|opacity|paint|stroke|text).*'
attrs: '(color|data|fill-rule|font|opacity|paint|stroke|text|xml).*'
}
},
'convertStyleToAttrs',