Webpack loader that takes a sprite svg and return a Vue component with the svg inline as template that can be imported
npm install vue-svg-sprite-loaderWebpack loader that takes a sprite svg and return a Vue component with the svg inline as template that can be imported.
```
npm install --save-dev vue-svg-sprite-loader
`js`
// webpack.config.js
{
test: /\.svg$/,
loader: 'vue-svg-sprite-loader',
options: {
// Removes svg title, default is false when not passing any options
removeTitle: true
}
}
`html
Be aware!
Hey next to this text should be an heart icon
``
---
The idea behind this was inspired by vue-svg-loader.