question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable svgo removeXMLNS plugin by default

See original GitHub issue

This plugin removes the xmlns attribute from the top-level svg element, which is safe for inline SVGs, which is how all SVGs transformed by this plugin will end up being used. I think it makes sense to enable this plugin by default.

https://github.com/svg/svgo/blob/master/plugins/removeXMLNS.js

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kesnecommented, Jun 20, 2017

I’ve changed my mind on this, I think having sane defaults included in the plugin would be great.

1reaction
lencionicommented, Mar 21, 2017

How come? svgo has a lot of plugins enabled by default, and this proposal simply extends that to also include a plugin that is guaranteed to always be applicable in this situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Enable svgo removeXMLNS plugin by default -
This plugin removes the xmlns attribute from the top-level svg element, which is safe for inline SVGs, which is how all SVGs transformed...
Read more >
svgo/README.md - UNPKG
The default preset of plugins is fully overridden if the `plugins` field is specified. 85, Use `preset-default` plugin to customize plugins options ...
Read more >
SVGR (SVGO) removeAttrs does not remove specified fill ...
When I manually remove fill attribute from generated <Path> in icon component I am able to change the fill via props. .svgo.yml configuration:...
Read more >
2.7.0 - svgo - npm
Plugin Description Default mergeStyles merge multiple style elements into one enabled removeDoctype remove doctype declaration enabled removeXMLProcInst remove XML processing instructions enabled
Read more >
Options - SVGR
Default, CLI Override, API Override ... NOTE: SVGR implicitly enables the prefixIds SVGO plugin which adds a prefix to values of id and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found