toby/resources/js/app.js
2022-01-11 12:52:37 +01:00

15 lines
386 B
JavaScript

import {createApp, h} from 'vue';
import {createInertiaApp} from '@inertiajs/inertia-vue3';
import {InertiaProgress} from '@inertiajs/progress';
createInertiaApp({
resolve: name => require(`./Pages/${name}`),
setup({el, App, props, plugin}) {
createApp({render: () => h(App, props)})
.use(plugin)
.mount(el);
},
});
InertiaProgress.init();