2021-07-25 09:29:15 -04:00
|
|
|
module.exports = {
|
|
|
|
multipass: false, // boolean. false by default
|
|
|
|
plugins: [
|
|
|
|
'cleanupAttrs',
|
|
|
|
'mergeStyles',
|
|
|
|
'inlineStyles',
|
2021-08-04 07:46:55 -04:00
|
|
|
// 'removeDoctype',
|
2021-07-25 09:29:15 -04:00
|
|
|
'removeXMLProcInst',
|
|
|
|
'removeComments',
|
|
|
|
'removeMetadata',
|
|
|
|
'removeTitle',
|
|
|
|
'removeDesc',
|
|
|
|
'removeUselessDefs',
|
2021-08-04 07:46:55 -04:00
|
|
|
// 'removeXMLNS',
|
2021-07-25 09:29:15 -04:00
|
|
|
'removeEditorsNSData',
|
|
|
|
'removeEmptyAttrs',
|
|
|
|
'removeHiddenElems',
|
|
|
|
'removeEmptyText',
|
|
|
|
'removeEmptyContainers',
|
2021-07-26 13:07:57 -04:00
|
|
|
// 'removeViewBox',
|
2021-07-25 09:29:15 -04:00
|
|
|
'cleanupEnableBackground',
|
|
|
|
'minifyStyles',
|
|
|
|
// 'convertStyleToAttrs',
|
|
|
|
'convertColors',
|
|
|
|
'convertPathData',
|
|
|
|
'convertTransform',
|
|
|
|
'removeUnknownsAndDefaults',
|
|
|
|
'removeNonInheritableGroupAttrs',
|
|
|
|
'removeUselessStrokeAndFill',
|
|
|
|
'removeUnusedNS',
|
|
|
|
// 'prefixIds',
|
|
|
|
'cleanupIDs',
|
|
|
|
'cleanupNumericValues',
|
|
|
|
// 'cleanupListOfValues',
|
|
|
|
'moveElemsAttrsToGroup',
|
|
|
|
'moveGroupAttrsToElems',
|
|
|
|
'collapseGroups',
|
|
|
|
// 'removeRasterImages',
|
|
|
|
'mergePaths',
|
|
|
|
'convertShapeToPath',
|
|
|
|
'convertEllipseToCircle',
|
|
|
|
'sortAttrs',
|
|
|
|
'sortDefsChildren',
|
2021-07-26 13:07:57 -04:00
|
|
|
'removeDimensions',
|
2021-07-25 09:29:15 -04:00
|
|
|
// 'removeAttrs',
|
|
|
|
{
|
|
|
|
name: 'removeAttrs',
|
|
|
|
params: {
|
2021-08-04 07:46:55 -04:00
|
|
|
attrs: ['svg:id', 'svg:style', 'g:id']
|
2021-07-25 09:29:15 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
// 'removeAttributesBySelector',
|
|
|
|
// 'removeElementsByAttr',
|
|
|
|
// 'addClassesToSVGElement',
|
2021-08-04 07:46:55 -04:00
|
|
|
// {
|
|
|
|
// name: 'addClassesToSVGElement',
|
|
|
|
// params: {
|
|
|
|
// className: '{{class-placeholder}}'
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// // 'addAttributesToSVGElement',
|
2021-07-25 09:29:15 -04:00
|
|
|
// 'removeOffCanvasPaths',
|
2021-08-04 07:46:55 -04:00
|
|
|
// 'removeStyleElement',
|
2021-07-25 09:29:15 -04:00
|
|
|
// 'removeScriptElement',
|
|
|
|
// 'reusePaths',
|
|
|
|
]
|
|
|
|
}
|