FWeinb / grunt-svgstore

Merge svgs from a folder
MIT License
920 stars 94 forks source link

Query: Is there a way to ask the plugin to generate <defs> to wrap the symbols in? #139

Open sumeetattree opened 6 years ago

sumeetattree commented 6 years ago

The output currently doesn't include <defs></defs>. I couldn't find a way to add a class to the parent svg element either. This leaves me with no choice but to manually write styles on the generated svg to prevent it from rendering when included.

Are you expecting the individual files to have their svg wrapped in defs?

I would really love to have an option to wrap the generated symbols in a global def tag. Thoughts?