-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfontawesome.js
28 lines (23 loc) · 868 Bytes
/
fontawesome.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Vue from 'vue'
import { library, config } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faTwitter, faGithub } from '@fortawesome/free-brands-svg-icons'
import {
faHeart,
faQuestionCircle,
faSpinner
} from '@fortawesome/free-solid-svg-icons'
// 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.
// Doc: https://github.com/FortAwesome/vue-fontawesome
// FontAwesome Core Icons
library.add(faHeart)
library.add(faQuestionCircle)
library.add(faSpinner)
// FontAwesome Brand Icons
library.add(faTwitter)
library.add(faGithub)
// Register the component globally
Vue.component('font-awesome-icon', FontAwesomeIcon)