Answer the question
In order to leave comments, you need to log in
I'm using gulp-svg-sprite, is it possible to create something like a snippet or mixin without pug to auto-paste the html path to a sprite in VS Code?
I'm using gulp-svg-sprite, is it possible to create a snippet/ mixin without PUG to auto-compose the path in html to the sprite? Those. when I write conditionally
<svg class="icon">
<use xlink:href="img/sprite.svg#icon-id"></use>
</svg>
Answer the question
In order to leave comments, you need to log in
In short, I learned that there is no unimaginable magic solution for solving such a problem without pug, but you can write all the statics into the snippet, i.e.
<svg class="icon">
<use xlink:href="img/sprite.svg#"></use>
</svg>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question