Created
March 13, 2024 22:50
-
-
Save lokmanm/60e1883d20011c6578cf5d04ed208516 to your computer and use it in GitHub Desktop.
SVGO Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
gzip: true, | |
multipass: false, | |
transformPrecision: '5', | |
floatPrecision: '3', | |
pretty: false, | |
plugins: [ | |
'removeDoctype', | |
'removeXMLProcInst', | |
'removeComments', | |
'removeMetadata', | |
'removeXMLNS', | |
'removeEditorsNSData', | |
'cleanupAttrs', | |
'mergeStyles', | |
'inlineStyles', | |
'minifyStyles', | |
'convertStyleToAttrs', | |
'cleanupIds', | |
'removeRasterImages', | |
'removeUselessDefs', | |
'cleanupNumericValues', | |
'cleanupListOfValues', | |
'convertColors', | |
'removeUnknownsAndDefaults', | |
'removeNonInheritableGroupAttrs', | |
'removeUselessStrokeAndFill', | |
'removeViewBox', | |
'cleanupEnableBackground', | |
'removeHiddenElems', | |
'removeEmptyText', | |
'convertShapeToPath', | |
'moveElemsAttrsToGroup', | |
'moveGroupAttrsToElems', | |
'collapseGroups', | |
'convertPathData', | |
'convertEllipseToCircle', | |
'convertTransform', | |
'removeEmptyAttrs', | |
'removeEmptyContainers', | |
'mergePaths', | |
'removeUnusedNS', | |
'reusePaths', | |
'sortAttrs', | |
'sortDefsChildren', | |
'removeTitle', | |
'removeDesc', | |
'removeDimensions', | |
'removeStyleElement', | |
'removeScriptElement', | |
'removeOffCanvasPaths', | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment