-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
34 lines (33 loc) · 869 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import tailwindcss from '@tailwindcss/vite';
import laravel from 'laravel-vite-plugin';
import { defineConfig } from 'vite';
import inertia from './resources/js/inertiaVitePlugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/js/browser.ts', 'resources/css/style.css'],
ssr: 'resources/js/ssr.ts',
refresh: true,
}),
svelte({
preprocess: [vitePreprocess()],
dynamicCompileOptions({ filename }) {
if (!filename.includes('node_modules')) {
return { runes: true };
}
},
}),
tailwindcss(),
inertia('resources/js/viteSsr.ts'),
],
build: {
assetsInlineLimit: 4096,
},
resolve: {
alias: {
'ziggy-js': `${import.meta.dirname}/vendor/tightenco/ziggy`,
$style: `${import.meta.dirname}/resources/css/style.css`,
},
},
});