Update SVGO config

Removed the 'removeViewBox' plugin, updated the 'removeAttrs' pattern to include 'maskUnits', and replaced 'removeScriptElement' with 'removeScripts'.
This commit is contained in:
HatScripts 2025-12-09 11:50:53 +11:00
parent 3b2571e8eb
commit 5de5ffccee

View file

@ -2,14 +2,11 @@ module.exports = {
multipass: true,
floatPrecision: 1,
plugins: [
{
name: 'removeViewBox',
active: false
},
{
name: 'removeAttrs',
params: {
attrs: '(color|data|fill-rule|font|opacity|paint|stroke|text|xml).*'
attrs:
'(color|data|fill-rule|font|maskUnits|opacity|paint|stroke|text).*'
}
},
'convertStyleToAttrs',
@ -17,7 +14,7 @@ module.exports = {
'removeRasterImages',
'sortAttrs',
'removeStyleElement',
'removeScriptElement',
'removeScripts',
'removeDoctype',
'removeXMLProcInst',
'removeComments',