Enable svgo removeXMLNS plugin by default
See original GitHub issueThis 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:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve changed my mind on this, I think having sane defaults included in the plugin would be great.
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.