Using inline SVGs in Vue.js
I wanted to display a custom SVG for the google maps marker. To get the raw SVG you can do the following.
|
|
Use the raw-loader for a single import by adding !raw-loader!
in front.
In this example we color a font-awesome icon.
|
|
@/ is a path alias in webpack that points to /src/
Alternatives are, using the html-loader
or svg-inline-loader