[Vuejs]-How to import custom svg icon in Vuex (Vuetify)

0👍

According to the docs here You would import the icon in the config file (for vuetify) and add it to the vuetify bootstrap as you did. Although you would need to have a default for all icons as shown in the docs above.

Basically should look something like this:

import Vue from 'vue'
import Vuetify from 'vuetify/lib'
import myImportedIcon from 'someplace'

Vue.use(Vuetify)

export default new Vuetify({
  icons: {
    iconfont: 'fa',
    values: {
      myIcon: myImportedIcon
    },
  },
})

Leave a comment