Last active
September 28, 2018 11:00
-
-
Save michaellopez/fbe8ec455a94ff95bc1cf8f6e3140fb5 to your computer and use it in GitHub Desktop.
SVGO config for SVGR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": [ | |
{ | |
"removeDoctype": true | |
}, | |
{ | |
"removeXMLProcInst": true | |
}, | |
{ | |
"removeComments": true | |
}, | |
{ | |
"removeMetadata": true | |
}, | |
{ | |
"removeXMLNS": false | |
}, | |
{ | |
"removeEditorsNSData": true | |
}, | |
{ | |
"cleanupAttrs": true | |
}, | |
{ | |
"inlineStyles": true | |
}, | |
{ | |
"minifyStyles": true | |
}, | |
{ | |
"convertStyleToAttrs": true | |
}, | |
{ | |
"cleanupIDs": { | |
"prefix": "CHANGEME-" | |
} | |
}, | |
{ | |
"removeRasterImages": false | |
}, | |
{ | |
"removeUselessDefs": true | |
}, | |
{ | |
"cleanupNumericValues": { | |
"params": { | |
"floatPrecision": 8 | |
} | |
} | |
}, | |
{ | |
"cleanupListOfValues": false | |
}, | |
{ | |
"convertColors": true | |
}, | |
{ | |
"removeUnknownsAndDefaults": true | |
}, | |
{ | |
"removeNonInheritableGroupAttrs": true | |
}, | |
{ | |
"removeUselessStrokeAndFill": true | |
}, | |
{ | |
"removeViewBox": false | |
}, | |
{ | |
"cleanupEnableBackground": true | |
}, | |
{ | |
"removeHiddenElems": true | |
}, | |
{ | |
"removeEmptyText": true | |
}, | |
{ | |
"convertShapeToPath": true | |
}, | |
{ | |
"moveElemsAttrsToGroup": true | |
}, | |
{ | |
"moveGroupAttrsToElems": true | |
}, | |
{ | |
"collapseGroups": true | |
}, | |
{ | |
"convertPathData": { | |
"params": { | |
"floatPrecision": 8 | |
} | |
} | |
}, | |
{ | |
"convertTransform": true | |
}, | |
{ | |
"removeEmptyAttrs": true | |
}, | |
{ | |
"removeEmptyContainers": true | |
}, | |
{ | |
"mergePaths": true | |
}, | |
{ | |
"removeUnusedNS": true | |
}, | |
{ | |
"sortAttrs": true | |
}, | |
{ | |
"removeTitle": true | |
}, | |
{ | |
"removeDesc": true | |
}, | |
{ | |
"removeDimensions": true | |
}, | |
{ | |
"removeStyleElement": false | |
}, | |
{ | |
"removeScriptElement": false | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment