multipass: true plugins: # Set precision to 3 decimal places - convertPathData: floatPrecision: 3 noSpaceAfterFlags: false # Sort attributes on the - sortAttrs: order: - role - viewBox xmlnsOrder: end # Convert basic shapes (such as ) to , including - convertShapeToPath: convertArcs: true # Compound all s into one - mergePaths: force: true noSpaceAfterFlags: false # Keep the - removeTitle: false # Don't remove the role="img" attribute and automatically # add it to the SVG if it's not - addAttributesToSVGElement: attributes: - role: img # remove any unnecessary attributes - removeUnknownsAndDefaults: keepRoleAttr: true - removeAttrs: attrs: - baseProfile # 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 - removeAttributesBySelector - removeElementsByAttr - addClassesToSVGElement - removeStyleElement - removeScriptElement - removeOffCanvasPaths - reusePaths