Skip to content

Instantly share code, notes, and snippets.

@jmeosbn
Last active December 17, 2015 09:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmeosbn/5586092 to your computer and use it in GitHub Desktop.
Save jmeosbn/5586092 to your computer and use it in GitHub Desktop.
SVGO settings to minify an SVG logo
# replace default config
# full: true
# Preferences equivalent to:
# svgo --pretty --disable removeHiddenElems --disable collapseGroups --disable cleanupIDs
js2svg:
pretty: true
plugins:
# - name
#
# or:
# - name: false
# - name: true
#
# or:
# - name:
# param1: 1
# param2: 2
- removeDoctype
- removeXMLProcInst
- removeComments
- removeMetadata
- removeEditorsNSData
- cleanupAttrs
- convertStyleToAttrs
- removeRasterImages
- cleanupNumericValues
- convertColors
- removeUnknownsAndDefaults
- removeNonInheritableGroupAttrs
- removeUselessStrokeAndFill
- removeViewBox
- cleanupEnableBackground
- removeHiddenElems: false
- removeEmptyText
- moveElemsAttrsToGroup
- collapseGroups: false
- moveGroupAttrsToElems
- convertPathData
- convertTransform
- removeEmptyAttrs
- removeEmptyContainers
- mergePaths
- cleanupIDs: false
- removeUnusedNS
- transformsWithOnePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment