This is a config file to be used with svgo's command line tool.
You can ues it with the following command:
svgo *.svg --config=/PATH-TO-FILE/svgo-config.yml
This is a config file to be used with svgo's command line tool.
You can ues it with the following command:
svgo *.svg --config=/PATH-TO-FILE/svgo-config.yml
{ | |
"plugins": [ | |
{ | |
"cleanupAttrs": true | |
}, | |
{ | |
"removeDoctype": true | |
}, | |
{ | |
"removeXMLProcInst": true | |
}, | |
{ | |
"removeComments": true | |
}, | |
{ | |
"removeMetadata": true | |
}, | |
{ | |
"removeTitle": true | |
}, | |
{ | |
"removeDesc": true | |
}, | |
{ | |
"removeUselessDefs": true | |
}, | |
{ | |
"removeEditorsNSData": true | |
}, | |
{ | |
"removeEmptyAttrs": true | |
}, | |
{ | |
"removeHiddenElems": true | |
}, | |
{ | |
"removeEmptyText": true | |
}, | |
{ | |
"removeEmptyContainers": true | |
}, | |
{ | |
"removeViewBox": false | |
}, | |
{ | |
"cleanUpEnableBackground": true | |
}, | |
{ | |
"convertStyleToAttrs": true | |
}, | |
{ | |
"convertColors": true | |
}, | |
{ | |
"convertPathData": true | |
}, | |
{ | |
"convertTransform": true | |
}, | |
{ | |
"removeUnknownsAndDefaults": true | |
}, | |
{ | |
"removeNonInheritableGroupAttrs": true | |
}, | |
{ | |
"removeUselessStrokeAndFill": true | |
}, | |
{ | |
"removeUnusedNS": true | |
}, | |
{ | |
"cleanupIDs": true | |
}, | |
{ | |
"cleanupNumericValues": true | |
}, | |
{ | |
"moveElemsAttrsToGroup": true | |
}, | |
{ | |
"moveGroupAttrsToElems": true | |
}, | |
{ | |
"collapseGroups": true | |
}, | |
{ | |
"removeRasterImages": false | |
}, | |
{ | |
"mergePaths": true | |
}, | |
{ | |
"convertShapeToPath": true | |
}, | |
{ | |
"sortAttrs": true | |
}, | |
{ | |
"transformsWithOnePath": false | |
}, | |
{ | |
"removeDimensions": true | |
}, | |
{ | |
"removeAttrs": { "attrs": "(stroke|fill)" } | |
} | |
] | |
} |
unfortunately doesn't work for me =(
--config Custom config file, only .js is supported
with this obsolete version it works!
https://www.npmjs.com/package/svgo/v/1.2.0
npm i -g [email protected]