boxicons/svgo.config.js
2021-07-24 21:46:28 +05:30

60 lines
No EOL
1.2 KiB
JavaScript

module.exports = {
plugins: [
'removeDoctype',
'removeXMLProcInst',
'removeComments',
'removeMetadata',
'removeEditorsNSData',
'cleanupAttrs',
'mergeStyles',
'inlineStyles',
'minifyStyles',
'cleanupIDs',
'removeUselessDefs',
'cleanupNumericValues',
'convertColors',
'removeUnknownsAndDefaults',
'removeNonInheritableGroupAttrs',
'removeUselessStrokeAndFill',
'removeViewBox',
'cleanupEnableBackground',
'removeHiddenElems',
'removeEmptyText',
'convertShapeToPath',
'convertEllipseToCircle',
'moveElemsAttrsToGroup',
'moveGroupAttrsToElems',
'collapseGroups',
'convertPathData',
'convertTransform',
'removeEmptyAttrs',
'removeEmptyContainers',
'mergePaths',
'removeUnusedNS',
'sortDefsChildren',
'removeTitle',
'removeDesc',
{
name: 'addAttributesToSVGElement',
params: {
attributes: [
{
viewBox: '0 0 24 24'
},
{
width: '24'
},
{
height: '24'
},
{
xmlns:'http://www.w3.org/2000/svg'
}
]
}
},
{ name: 'removeAttrs', params: { attrs: '(stroke|fill)' } },
]
}