E
E
ette2018-12-11 23:59:18
SVG
ette, 2018-12-11 23:59:18

Vue.js, using svg sprite?

I'm newbie learning vue and webpack and now I'm facing a problem. I can't figure out how to use svg sprites. I would like to set in the template in the attribute - the id of the icon and get the result. Icons can change, their number will be different, in general, it is advisable to call only by id, and not connect each one through import.
Tried https://github.com/thierrymichel/vue-svg-sprite - perfect for me. Does not work (use 0x0), and could not find the reason, to my deepest regret. I tried other options, but also did not come to the desired result, perhaps the reason is the curvature of the hands (
Please tell me what could be the problem with vue-svg-sprite, did any of you use it?
If you offer other options, is it possible to ask for a working example of a project with a used svg-sprite, because when I connect it myself, I constantly run into errors and various things that are not yet obvious to me.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question