coma / gulp-svg-icons

Inserting SVG icons was never so easy.
MIT License
24 stars 3 forks source link

multiple use references #3

Closed Spica2 closed 10 years ago

Spica2 commented 10 years ago

Is there a way to include symbols without nessecarly having the referene in the markup. I try to get a svg with two use references, how to include the two symbols

coma commented 10 years ago

I have to add an option for this.

Spica2 commented 10 years ago

Simply a comment like <!-- icon-trophy class="red" --> would help. This comment can then be deleted and the symbol inserted. This could also help when responsive svgs with custom svg attributes are needed.

coma commented 10 years ago

Hey buddy,

I've been enjoying some holidays, but finally a new injectOnlyUsedIcons is available, check it out!

Spica2 commented 10 years ago

Ah, thanks. Just checked it out. Very usefull. But as I have a large icons set in one dir for different pages all using different icons I need the only-used-icons-injection feature. Meanwhile I used the processhtml with to remove the already replaced icons, that I just need for a multiple use link at a different svg. I hoped to leave that processhtml out.