2020-11-09 22:02:00 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import { library, config } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
|
|
import { fas } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { fab } from '@fortawesome/free-brands-svg-icons'
|
2020-12-28 16:45:11 +08:00
|
|
|
import { far } from '@fortawesome/free-regular-svg-icons'
|
2020-11-09 22:02:00 +08:00
|
|
|
|
|
|
|
// This is important, we are going to let Nuxt.js worry about the CSS
|
|
|
|
config.autoAddCss = false
|
|
|
|
|
|
|
|
// You can add your icons directly in this plugin. See other examples for how you
|
|
|
|
// can add other styles or just individual icons.
|
|
|
|
library.add(fas)
|
|
|
|
library.add(fab)
|
2020-12-28 16:45:11 +08:00
|
|
|
library.add(far)
|
2020-11-09 22:02:00 +08:00
|
|
|
|
|
|
|
// Register the component globally
|
|
|
|
Vue.component('font-awesome-icon', FontAwesomeIcon)
|