2019-07-15 17:14:50 +03:00
|
|
|
multipass: true
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
# Set <path> precision to 3 decimal places
|
|
|
|
- convertPathData:
|
|
|
|
floatPrecision: 3
|
2019-10-09 23:03:54 +03:00
|
|
|
noSpaceAfterFlags: false
|
2019-07-15 17:14:50 +03:00
|
|
|
|
|
|
|
# Sort attributes on the <SVG>
|
|
|
|
- sortAttrs:
|
|
|
|
order:
|
|
|
|
- role
|
|
|
|
- viewBox
|
|
|
|
xmlnsOrder: end
|
|
|
|
|
|
|
|
# Convert basic shapes (such as <circle>) to <path>, including <arc>
|
|
|
|
- convertShapeToPath:
|
|
|
|
convertArcs: true
|
|
|
|
|
|
|
|
# Compound all <path>s into one
|
|
|
|
- mergePaths:
|
|
|
|
force: true
|
2019-12-09 02:34:31 +03:00
|
|
|
noSpaceAfterFlags: false
|
2019-07-15 17:14:50 +03:00
|
|
|
|
|
|
|
# Keep the <title>
|
|
|
|
- removeTitle: false
|
|
|
|
|
|
|
|
# Don't remove the role="img" attribute and automatically
|
|
|
|
# add it to the SVG if it's not
|
|
|
|
- addAttributesToSVGElement:
|
|
|
|
attributes:
|
|
|
|
- role: img
|
|
|
|
- removeUnknownsAndDefaults:
|
|
|
|
keepRoleAttr: true
|
|
|
|
|
|
|
|
# Enable everything else
|
|
|
|
- removeDoctype
|
|
|
|
- removeXMLProcInst
|
|
|
|
- removeComments
|
|
|
|
- removeMetadata
|
|
|
|
- removeXMLNS
|
|
|
|
- removeEditorsNSData
|
|
|
|
- cleanupAttrs
|
|
|
|
- inlineStyles
|
|
|
|
- minifyStyles
|
|
|
|
- convertStyleToAttrs
|
|
|
|
- cleanupIDs
|
|
|
|
- prefixIds
|
|
|
|
- removeRasterImages
|
|
|
|
- removeUselessDefs
|
|
|
|
- cleanupNumericValues
|
|
|
|
- cleanupListOfValues
|
|
|
|
- convertColors
|
|
|
|
- removeNonInheritableGroupAttrs
|
|
|
|
- removeUselessStrokeAndFill
|
|
|
|
- removeViewBox
|
|
|
|
- cleanupEnableBackground
|
|
|
|
- removeHiddenElems
|
|
|
|
- removeEmptyText
|
|
|
|
- moveElemsAttrsToGroup
|
|
|
|
- moveGroupAttrsToElems
|
|
|
|
- collapseGroups
|
|
|
|
- convertTransform
|
|
|
|
- removeEmptyAttrs
|
|
|
|
- removeEmptyContainers
|
|
|
|
- removeUnusedNS
|
|
|
|
- removeDesc
|
|
|
|
- removeDimensions
|
|
|
|
- removeAttrs
|
|
|
|
- removeAttributesBySelector
|
|
|
|
- removeElementsByAttr
|
|
|
|
- addClassesToSVGElement
|
|
|
|
- removeStyleElement
|
|
|
|
- removeScriptElement
|
|
|
|
- removeOffCanvasPaths
|
|
|
|
- reusePaths
|