Skip to content

Instantly share code, notes, and snippets.

@mhauken
Forked from bendc/svgo.json
Last active April 16, 2018 08:13
Show Gist options
  • Save mhauken/05f8d70d65d874d832391cc5d9211628 to your computer and use it in GitHub Desktop.
Save mhauken/05f8d70d65d874d832391cc5d9211628 to your computer and use it in GitHub Desktop.
Sketch's SVGO Compressor settings
{
"comment": "A modified svgo compression-settings for SVGO-compresspor by Marius Hauken. For more info, please check <https://github.com/BohemianCoding/svgo-compressor>",
"pretty": false,
"indent": 0,
"plugins": [
{
"name": "cleanupAttrs"
},
{
"name": "cleanupEnableBackground"
},
{
"name": "cleanupIDs"
},
{
"name": "cleanupListOfValues"
},
{
"name": "cleanupNumericValues",
"params": {
"floatPrecision": 2
}
},
{
"name": "collapseGroups"
},
{
"name": "convertPathData",
"params": {
"floatPrecision": 2
}
},
{
"name": "convertStyleToAttrs"
},
{
"name": "convertTransform"
},
{
"name": "mergePaths"
},
{
"name": "minifyStyles"
},
{
"name": "removeComments"
},
{
"name": "removeDesc",
"params": {
"removeAny": true
}
},
{
"name": "removeDimensions"
},
{
"name": "removeDoctype"
},
{
"name": "removeEditorsNSData"
},
{
"name": "removeEmptyAttrs"
},
{
"name": "removeEmptyContainers"
},
{
"name": "removeEmptyText"
},
{
"name": "removeMetadata"
},
{
"name": "removeNonInheritableGroupAttrs"
},
{
"name": "removeTitle"
},
{
"name": "removeUnknownsAndDefaults"
},
{
"name": "removeUnusedNS"
},
{
"name": "removeUselessDefs"
},
{
"name": "removeUselessStrokeAndFill"
},
{
"name": "removeXMLProcInst"
},
{
"name": "sortAttrs"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment