Update SVGO config
Removed the 'removeViewBox' plugin, updated the 'removeAttrs' pattern to include 'maskUnits', and replaced 'removeScriptElement' with 'removeScripts'.
This commit is contained in:
parent
3b2571e8eb
commit
5de5ffccee
1 changed files with 3 additions and 6 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue