1// Install all needed fontawesome dependencies
2npm install @fortawesome/fontawesome-svg-core
3npm install @fortawesome/free-solid-svg-icons
4npm install @fortawesome/vue-fontawesome
5
6// Import fontawesome
7import {library} from '@fortawesome/fontawesome-svg-core'
8import {fas} from '@fortawesome/free-solid-svg-icons'
9import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
10
11// Add solid icons library
12library.add(fas);
13
14// Create fontawesome vue component
15Vue.component('font-awesome-icon', FontAwesomeIcon)