circle-flags/svgo.config.js
HatScripts 5de5ffccee Update SVGO config
Removed the 'removeViewBox' plugin, updated the 'removeAttrs' pattern to include 'maskUnits', and replaced 'removeScriptElement' with 'removeScripts'.
2025-12-09 11:50:53 +11:00

52 lines
1.2 KiB
JavaScript

module.exports = {
multipass: true,
floatPrecision: 1,
plugins: [
{
name: 'removeAttrs',
params: {
attrs:
'(color|data|fill-rule|font|maskUnits|opacity|paint|stroke|text).*'
}
},
'convertStyleToAttrs',
'cleanupListOfValues',
'removeRasterImages',
'sortAttrs',
'removeStyleElement',
'removeScripts',
'removeDoctype',
'removeXMLProcInst',
'removeComments',
'removeMetadata',
'removeEditorsNSData',
'cleanupAttrs',
'mergeStyles',
'inlineStyles',
'minifyStyles',
'cleanupIds',
'removeUselessDefs',
'cleanupNumericValues',
'convertColors',
'removeUnknownsAndDefaults',
'removeNonInheritableGroupAttrs',
'removeUselessStrokeAndFill',
'cleanupEnableBackground',
'removeHiddenElems',
'removeEmptyText',
'convertShapeToPath',
'convertEllipseToCircle',
'moveElemsAttrsToGroup',
'moveGroupAttrsToElems',
'collapseGroups',
'convertPathData',
'convertTransform',
'removeEmptyAttrs',
'removeEmptyContainers',
'mergePaths',
'removeUnusedNS',
'sortDefsChildren',
'removeTitle',
'removeDesc'
]
}