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