-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
40 lines (38 loc) · 1.13 KB
/
vite.config.js
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
35
36
37
38
39
40
import { URL, fileURLToPath } from 'node:url';
import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.js',
refresh: true,
}),
svelte({
preprocess: vitePreprocess(),
}),
],
resolve: {
alias: {
$lib: fileURLToPath(new URL('./resources/js/Lib', import.meta.url)),
$components: fileURLToPath(
new URL('./resources/js/Components', import.meta.url)
),
$vendor: fileURLToPath(new URL('./vendor', import.meta.url)),
$types: fileURLToPath(new URL('./resources/js/types', import.meta.url)),
$layouts: fileURLToPath(
new URL('./resources/js/Layouts', import.meta.url)
),
$pages: fileURLToPath(new URL('./resources/js/Pages', import.meta.url)),
$lang: fileURLToPath(new URL('./lang', import.meta.url)),
$models: fileURLToPath(
new URL('./resources/js/models.d.ts', import.meta.url)
),
},
},
server: {
hmr: {
clientPort: 5173,
},
},
});