Skip to content

Instantly share code, notes, and snippets.

@tobywf
Created January 29, 2018 02:40
Show Gist options
  • Save tobywf/a11ff29e5b9128e04b2e39ea2fb9cee6 to your computer and use it in GitHub Desktop.
Save tobywf/a11ff29e5b9128e04b2e39ea2fb9cee6 to your computer and use it in GitHub Desktop.
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