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

Not honoring .svgo.yml #15

Closed
ronilaukkarinen opened this issue Sep 17, 2020 · 1 comment
Closed

Not honoring .svgo.yml #15

ronilaukkarinen opened this issue Sep 17, 2020 · 1 comment

Comments

@ronilaukkarinen
Copy link

I have removeViewBox: false in my .svgo.yml but this plugin still removes viewBox attribute.

Full .svgo.yml in my workspace root directory:

multipass: true
full: true
plugins:
  - removeDoctype: true
  - removeXMLProcInst: true
  - removeComments: true
  - removeMetadata: true
  - removeXMLNS: true
  - removeEditorsNSData: true
  - cleanupAttrs: true
  - inlineStyles: true
  - minifyStyles: true
  - convertStyleToAttrs: true
  - cleanupIDs: true
  - prefixIds: true
  - removeRasterImages: true
  - removeUselessDefs: true
  - cleanupNumericValues: true
  - cleanupListOfValues: true
  - convertColors: true
  - removeUnknownsAndDefaults: true
  - removeNonInheritableGroupAttrs: true
  - removeUselessStrokeAndFill: true
  - removeViewBox: false
  - cleanupEnableBackground: true
  - removeHiddenElems: true
  - removeEmptyText: true
  - convertShapeToPath: true
  - convertEllipseToCircle: true
  - moveElemsAttrsToGroup: true
  - moveGroupAttrsToElems: true
  - collapseGroups: true
  - convertPathData: true
  - convertTransform: true
  - removeEmptyAttrs: true
  - removeEmptyContainers: true
  - mergePaths: true
  - removeUnusedNS: true
  - sortAttrs: true
  - sortDefsChildren: true
  - removeTitle: true
  - removeDesc: true
  - removeDimensions: false
  - removeAttrs: true
  - removeAttributesBySelector: true
  - removeElementsByAttr: true
  - addClassesToSVGElement: true
  - removeStyleElement: true
  - removeScriptElement: true
  - addAttributesToSVGElement: true
  - removeOffCanvasPaths: true
  - reusePaths: true
@1000ch
Copy link
Owner

1000ch commented Sep 11, 2021

Sorry for the inconvenience, now .svgo.yml is obsoleted, and this plugin supports svgo.config.js, so please try this svgo.config.js way.

@1000ch 1000ch closed this as completed Sep 11, 2021
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

2 participants