22 lines
569 B
JavaScript
22 lines
569 B
JavaScript
import './bootstrap';
|
|
import '../css/app.css';
|
|
import { createApp, h } from 'vue'
|
|
import { createInertiaApp } from '@inertiajs/vue3'
|
|
import {createPinia} from "pinia";
|
|
|
|
createInertiaApp({
|
|
id: 'kartoteka',
|
|
resolve: name => {
|
|
const pages = import.meta.glob('./Pages/**/*.vue', { eager: true })
|
|
return pages[`./Pages/${name}.vue`]
|
|
},
|
|
setup({ el, App, props, plugin }) {
|
|
const pinia = createPinia()
|
|
|
|
createApp({ render: () => h(App, props) })
|
|
.use(plugin)
|
|
.use(pinia)
|
|
.mount(el)
|
|
},
|
|
})
|