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,
|
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',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue