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

Fix svgo option HTMLNanoOptimizer.js #9935

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

monte-monte
Copy link

Fix cleanupIDs to cleanupIds according to https://github.com/svg/svgo/releases/tag/v3.0.0

Without this fix parcel build throws a warning:

You are trying to configure cleanupIDs which is not part of preset-default.
Try to put it before or after, for example

plugins: [
  {
    name: 'preset-default',
  },
  'cleanupIDs'
]

And "cleanupIDs": false is ignored resulting in clearing IDs from SVG tags.

The bug was also mentioned in this issue: #9171

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

Successfully merging this pull request may close these issues.

1 participant