pingcrm-svelte
pingcrm-svelte copied to clipboard
Vite
We need example inertiajs vite. So it should using Laravel 9
We need example inertiajs vite. So it should using Laravel 9
Try this
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel([
'./resources/css/app.css',
'./resources/js/app.js',
]),
svelte(),
],
optimizeDeps: {
include: [
"@inertiajs/inertia",
"@inertiajs/inertia-svelte",
]
},
});
Hey, you can also find a working Vite example here:
https://github.com/inertiajs/inertia/tree/master/playgrounds/svelte