-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.js
40 lines (39 loc) · 1.25 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 { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import laravel from 'laravel-vite-plugin';
import sveltePreprocess from 'svelte-preprocess';
import path from 'path';
export default defineConfig({
plugins: [
laravel({
input: ['resources/js/app.js'],
refresh: true,
//buildDirectory: 'static'
}),
svelte({
preprocess: sveltePreprocess({
postcss: true
}),
experimental: {
prebundleSvelteLibraries: true
}
})
],
build: {
//outDir: './public/static'
},
optimizeDeps: {
include: ['@inertiajs/inertia']
},
resolve: {
alias: {
"~": path.resolve(__dirname, './resources'),
"~js": path.resolve(__dirname, './resources/js'),
"~css": path.resolve(__dirname, './resources/css'),
"~page": path.resolve(__dirname, './resources/svelte/pages'),
"~component": path.resolve(__dirname, './resources/svelte/components'),
"~store": path.resolve(__dirname, './resources/svelte/stores')
},
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.svelte']
}
});