Skip to content

Commit 5de5ffc

Browse files
committed
Update SVGO config
Removed the 'removeViewBox' plugin, updated the 'removeAttrs' pattern to include 'maskUnits', and replaced 'removeScriptElement' with 'removeScripts'.
1 parent 3b2571e commit 5de5ffc

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

svgo.config.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@ module.exports = {
22
multipass: true,
33
floatPrecision: 1,
44
plugins: [
5-
{
6-
name: 'removeViewBox',
7-
active: false
8-
},
95
{
106
name: 'removeAttrs',
117
params: {
12-
attrs: '(color|data|fill-rule|font|opacity|paint|stroke|text|xml).*'
8+
attrs:
9+
'(color|data|fill-rule|font|maskUnits|opacity|paint|stroke|text).*'
1310
}
1411
},
1512
'convertStyleToAttrs',
1613
'cleanupListOfValues',
1714
'removeRasterImages',
1815
'sortAttrs',
1916
'removeStyleElement',
20-
'removeScriptElement',
17+
'removeScripts',
2118
'removeDoctype',
2219
'removeXMLProcInst',
2320
'removeComments',

0 commit comments

Comments
 (0)