Run SVGO (#62)
* Run SVGO * Add tiniest/ for super-optimized files * Update sizes in readme
This commit is contained in:
committed by
Terence Eden
parent
f3f297cd2f
commit
945e1c3f1e
51
tiny/svgo.yml
Normal file
51
tiny/svgo.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
# SVGO config
|
||||
# Usage: svgo -f tiny --config=tiny/svgo.yml --pretty --indent 0 --precision 2
|
||||
|
||||
full: true
|
||||
multipass: true
|
||||
plugins:
|
||||
- addAttributesToSVGElement
|
||||
- addClassesToSVGElement
|
||||
- cleanupAttrs
|
||||
- cleanupEnableBackground
|
||||
- cleanupIDs
|
||||
- cleanupListOfValues
|
||||
- cleanupNumericValues
|
||||
- collapseGroups
|
||||
- convertColors
|
||||
- convertPathData
|
||||
- convertShapeToPath
|
||||
- convertStyleToAttrs
|
||||
- convertTransform
|
||||
- inlineStyles
|
||||
- mergePaths
|
||||
- minifyStyles
|
||||
- moveElemsAttrsToGroup
|
||||
- moveGroupAttrsToElems
|
||||
- prefixIds
|
||||
- removeAttrs
|
||||
- removeComments
|
||||
- removeDesc
|
||||
- removeDimensions
|
||||
- removeDoctype
|
||||
- removeEditorsNSData
|
||||
- removeElementsByAttr: false
|
||||
- removeEmptyAttrs
|
||||
- removeEmptyContainers
|
||||
- removeEmptyText
|
||||
- removeHiddenElems
|
||||
- removeMetadata
|
||||
- removeNonInheritableGroupAttrs
|
||||
- removeRasterImages: false
|
||||
- removeScriptElement: false
|
||||
- removeStyleElement: false
|
||||
- removeTitle
|
||||
- removeUnknownsAndDefaults:
|
||||
unknownAttrs: false # Preserves 'role="img"', needed for accessibility: https://github.com/edent/SuperTinyIcons/pull/62#issuecomment-347227889
|
||||
- removeUnusedNS
|
||||
- removeUselessDefs
|
||||
- removeUselessStrokeAndFill
|
||||
- removeViewBox
|
||||
- removeXMLNS: false
|
||||
- removeXMLProcInst
|
||||
- sortAttrs: false
|
Reference in New Issue
Block a user