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