Skip to content

Instantly share code, notes, and snippets.

@GiuMagnani
Created August 13, 2018 15:14
Show Gist options
  • Save GiuMagnani/d44f9e19be1597caa91779e944be1fcb to your computer and use it in GitHub Desktop.
Save GiuMagnani/d44f9e19be1597caa91779e944be1fcb to your computer and use it in GitHub Desktop.
Config file for SVGO based on config from https://jakearchibald.github.io/svgomg/
{
"plugins": [
{ "removeDoctype": true },
{ "removeXMLProcInst": true },
{ "removeComments": true },
{ "removeMetadata": true },
{ "removeXMLNS": true },
{ "removeEditorsNSData": true },
{ "cleanupAttrs": true },
{ "inlineStyles": true },
{ "minifyStyles": true },
{ "convertStyleToAttrs": true },
{ "cleanupIDs": true },
{ "removeRasterImages": true },
{ "removeUselessDefs": true },
{ "cleanupNumericValues": true },
{ "cleanupListOfValues": true },
{ "convertColors": true },
{ "removeUnknownsAndDefaults": true },
{ "removeNonInheritableGroupAttrs": true },
{ "removeUselessStrokeAndFill": true },
{ "removeViewBox": true },
{ "cleanupEnableBackground": true },
{ "removeHiddenElems": true },
{ "removeEmptyText": true },
{ "convertShapeToPath": true },
{ "moveElemsAttrsToGroup": true },
{ "moveGroupAttrsToElems": true },
{ "collapseGroups": true },
{ "convertPathData": true },
{ "convertTransform": true },
{ "removeEmptyAttrs": true },
{ "removeEmptyContainers": true },
{ "mergePaths": true },
{ "removeUnusedNS": true },
{ "sortAttrs": true },
{ "removeTitle": true },
{ "removeDesc": true },
{ "removeDimensions": true },
{ "removeStyleElement": true },
{ "removeScriptElement": true }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment