You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
785 B
23 lines
785 B
import './bootstrap'; |
|
import '../css/app.css'; |
|
|
|
import { createApp, h } from 'vue'; |
|
import { createInertiaApp } from '@inertiajs/vue3'; |
|
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'; |
|
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m'; |
|
|
|
const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel'; |
|
|
|
createInertiaApp({ |
|
title: (title) => `${title} - ${appName}`, |
|
resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')), |
|
setup({ el, App, props, plugin }) { |
|
return createApp({ render: () => h(App, props) }) |
|
.use(plugin) |
|
.use(ZiggyVue, Ziggy) |
|
.mount(el); |
|
}, |
|
progress: { |
|
color: '#4B5563', |
|
}, |
|
});
|
|
|