- add fontawesome
This commit is contained in:
11
resources/js/app.js
vendored
11
resources/js/app.js
vendored
@@ -5,6 +5,16 @@ import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
|
||||
import { createApp, h } from 'vue';
|
||||
import { createInertiaApp, Head, Link } from '@inertiajs/inertia-vue3';
|
||||
|
||||
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';
|
||||
import { fab } from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
library.add(fas)
|
||||
.add(far)
|
||||
.add(fab);
|
||||
|
||||
import './css/app.css';
|
||||
import App from '@/Share/Layout/App.vue';
|
||||
|
||||
@@ -26,6 +36,7 @@ createInertiaApp({
|
||||
.use(plugin)
|
||||
.component('InertiaLink', Link)
|
||||
.component('InertiaHead', Head)
|
||||
.component('FontAwesomeIcon', FontAwesomeIcon)
|
||||
.mount(el)
|
||||
},
|
||||
title: title => `${title} | KamilCraft API`
|
||||
|
Reference in New Issue
Block a user