egoist
10/21/2016 - 8:09 AM

g.js

import SvgIcons from 'vue-svg-icons'

Vue.use(SvgIcons, {
  icons: {
    compass: require('vue-svg-icons/')
  }
})

// in your component
{
  template: `
    <svg-icon name="compass"></svg-icon>
  `
}