Instantly share code, notes, and snippets.

Embed
What would you like to do?
My SVGO configuration file
multipass: true
plugins:
- removeDoctype
- removeXMLProcInst
- removeComments
- removeMetadata
- removeXMLNS
- removeEditorsNSData
- cleanupAttrs
- minifyStyles
- convertStyleToAttrs
- cleanupIDs
- removeRasterImages
- removeUselessDefs
- cleanupNumericValues
- cleanupListOfValues
- convertColors
- removeUnknownsAndDefaults
- removeNonInheritableGroupAttrs
- removeUselessStrokeAndFill
# - removeViewBox
- cleanupEnableBackground
- removeHiddenElems
- removeEmptyText
- convertShapeToPath
- moveElemsAttrsToGroup
# - moveGroupAttrsToElems
- collapseGroups
# - convertPathData
# - convertTransform
- removeEmptyAttrs
- removeEmptyContainers
- mergePaths
- removeUnusedNS
- transformsWithOnePath
- sortAttrs
- removeTitle
- removeDesc
# - removeDimensions
# - removeAttrs
# - removeElementsByAttr
# - addClassesToSVGElement
# - removeStyleElement
# - removeScriptElement
# - addAttributesToSVGElement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment