Answer the question
In order to leave comments, you need to log in
How to remove id and defs from svg?
Hello. I use gulp-svgmin and gulp-svgstore to optimize svg and sprite creation. But after the sprite is created, some garbage is created. Can I somehow remove it? And how can I set svg to default display: none; without touching styles. Maybe there is some property. It's just that after I remove it all in the file, a new sprite is created and all this is replaced.
Or maybe you can make the classes named the same as the file itself?
PS because of these styles in defs I can not change the color through css. Maybe there are some other options?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question