Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default config for SVGO plugin #139

Open
DamianMullins opened this issue Aug 24, 2018 · 0 comments
Open

Add default config for SVGO plugin #139

DamianMullins opened this issue Aug 24, 2018 · 0 comments

Comments

@DamianMullins
Copy link
Contributor

DamianMullins commented Aug 24, 2018

We should apply a default set of config for the SVGO plugin to ensure that all SVGs are consistent across Fozzie modules.

The default set used to date is as follows

{
    cleanupAttrs: true,
    cleanupEnableBackground: true,
    cleanupIDs: true,
    cleanupListOfValues: false,
    cleanupNumericValues: true,
    collapseGroups: true,
    convertColors: true,
    convertPathData: true,
    convertShapeToPath: true,
    convertStyleToAttrs: true,
    convertTransform: true,
    inlineStyles: true,
    mergePaths: true,
    minifyStyles: true,
    moveElemsAttrsToGroup: true,
    moveGroupAttrsToElems: true,
    removeComments: true,
    removeDesc: true,
    removeDimensions: true,
    removeDoctype: true,
    removeEditorsNSData: true,
    removeEmptyAttrs: true,
    removeEmptyContainers: true,
    removeEmptyText: true,
    removeHiddenElems: true,
    removeMetadata: true,
    removeNonInheritableGroupAttrs: true,
    removeRasterImages: false,
    removeScriptElement: false,
    removeStyleElement: false,
    removeTitle: true,
    removeUnknownsAndDefaults: true,
    removeUnusedNS: true,
    removeUselessDefs: true,
    removeUselessStrokeAndFill: true,
    removeViewBox: false,
    removeXMLNS: false,
    removeXMLProcInst: true,
    sortAttrs: true
}

With a float precision of 2.

We'll need to match these values up to the SVGO config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant