mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-26 01:13:41 +02:00
0aeb436e9b
This should help with the overzealous whitespace removal in paths which will break many viewers/editors (even tho most browsers are fine with this). It was already set on `ConvertPathData`. but this alone is not enough.
77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
multipass: true
|
|
|
|
plugins:
|
|
# Set <path> precision to 3 decimal places
|
|
- convertPathData:
|
|
floatPrecision: 3
|
|
noSpaceAfterFlags: false
|
|
|
|
# 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
|
|
noSpaceAfterFlags: false
|
|
|
|
# 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
|