nuxt-community/svg-module

Why not just include an SVG file?

notflip opened this issue · 1 comments

What's the difference in using this plugin vs just including an asset like so <img src="~/assets/logo.svg">?

you can get a <svg>...</svg> in your markup, which behaves differently.

<img /> can't do the following with SVG:

  • animate parts of the svg
  • style parts of the svg