-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
43 lines (42 loc) · 1.16 KB
/
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
35
36
37
38
39
40
41
42
43
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import path from "node:path";
import importMetaUrlPlugin from '@codingame/esbuild-import-meta-url-plugin';
export default defineConfig({
base: "./",
server: {
watch: {
ignored: [
path.join(process.cwd(), "storage", "app", "workspaces", "**")
]
}
},
optimizeDeps: {
esbuildOptions: {
plugins: [
importMetaUrlPlugin
]
}
},
plugins: [
laravel({
input: [
'resources/css/app/goldenlayout-base.scss',
'resources/css/app/goldenlayout-dark-theme.scss',
'resources/css/app/goldenlayout-light-theme.scss',
'resources/css/normalize.scss',
'resources/css/disagreed.scss',
'resources/js/disagreed.js',
'resources/css/app.scss',
'resources/js/app-preload.ts'
],
refresh: true,
}),
],
define: {
rootDirectory: JSON.stringify(__dirname)
},
worker: {
format: "es"
}
});