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

remove some attributes from the svg #138

Closed
rwieruch opened this issue Jul 11, 2018 · 3 comments
Closed

remove some attributes from the svg #138

rwieruch opened this issue Jul 11, 2018 · 3 comments

Comments

@rwieruch
Copy link

rwieruch commented Jul 11, 2018

The documentation says it is possible to remove an attribute from the SVG with --svg-attributes <property=value>. Is it possible to remove (unsupported) attributes too?

Thanks for the project. Very much appreciated ❤️

@rwieruch rwieruch changed the title remove some attributes to the svg remove some attributes from the svg Jul 13, 2018
@gregberge
Copy link
Owner

What do you mean by unsupported attribute?

@rwieruch
Copy link
Author

In my case, the SVG has some attributes in there which are not valid SVG attributes. When I use these SVG in my code, I get a warning in the console.log. It's not super important, because it's just a warning. I was only wondering if this would be possible.

@gregberge
Copy link
Owner

I am sorry but it is not a very common use-case. I suggest you to write h2x plugin to do it if you want, you can also see if SVGO want to support it. I think it is optimisation, so it should not be in SVGR.

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