forked from cashew-labs/opencode-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
41 lines (40 loc) · 888 Bytes
/
Copy pathvite.config.ts
File metadata and controls
41 lines (40 loc) · 888 Bytes
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
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import { resolve } from 'path';
export default defineConfig({
plugins: [solidPlugin()],
server: {
port: 5173,
strictPort: true,
hmr: {
host: 'localhost',
},
watch: {
usePolling: true,
interval: 500,
},
},
build: {
outDir: 'out',
minify: false,
rollupOptions: {
input: {
main: resolve(__dirname, 'src/webview/index.html'),
uikit: resolve(__dirname, 'src/webview/uikit.html')
},
output: {
entryFileNames: '[name].js',
assetFileNames: (assetInfo) => {
if (assetInfo.name === 'style.css') return 'main.css';
return assetInfo.name || 'asset';
}
}
},
sourcemap: true
},
resolve: {
alias: {
'@': resolve(__dirname, 'src/webview')
}
}
});