parent
132dab3448
commit
908ba62f58
@ -1,5 +1,35 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
|
|
||||||
createApp(App).mount('#app')
|
|
||||||
|
|
||||||
|
// Vuetify
|
||||||
|
import 'vuetify/styles'
|
||||||
|
import { createVuetify } from 'vuetify'
|
||||||
|
import * as components from 'vuetify/components'
|
||||||
|
import * as directives from 'vuetify/directives'
|
||||||
|
import '@fortawesome/fontawesome-free/css/all.css' // Ensure your project is capable of handling css files
|
||||||
|
import { aliases, fa } from 'vuetify/iconsets/fa-svg'
|
||||||
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||||
|
import { fas } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
import { far } from '@fortawesome/free-regular-svg-icons'
|
||||||
|
|
||||||
|
const app = createApp(App)
|
||||||
|
|
||||||
|
app.component('font-awesome-icon', FontAwesomeIcon) // Register component globally
|
||||||
|
library.add(fas) // Include needed solid icons
|
||||||
|
library.add(far) // Include needed regular icons
|
||||||
|
|
||||||
|
const vuetify = createVuetify({
|
||||||
|
components,
|
||||||
|
directives,
|
||||||
|
icons: {
|
||||||
|
defaultSet: 'fa',
|
||||||
|
aliases,
|
||||||
|
sets: {
|
||||||
|
fa,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
app.use(vuetify).mount('#app')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user