From 5de5ffccee5f7e708f6a839ae9dfcc9429d522c5 Mon Sep 17 00:00:00 2001 From: HatScripts Date: Tue, 9 Dec 2025 11:50:53 +1100 Subject: [PATCH] Update SVGO config Removed the 'removeViewBox' plugin, updated the 'removeAttrs' pattern to include 'maskUnits', and replaced 'removeScriptElement' with 'removeScripts'. --- svgo.config.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/svgo.config.js b/svgo.config.js index b8cec81..0cde31c 100644 --- a/svgo.config.js +++ b/svgo.config.js @@ -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',