Skip to content

Instantly share code, notes, and snippets.

@michaellopez
Last active September 28, 2018 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellopez/fbe8ec455a94ff95bc1cf8f6e3140fb5 to your computer and use it in GitHub Desktop.
Save michaellopez/fbe8ec455a94ff95bc1cf8f6e3140fb5 to your computer and use it in GitHub Desktop.
SVGO config for SVGR
{
"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