forked from stablyai/orca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.web.config.ts
More file actions
31 lines (30 loc) · 781 Bytes
/
Copy pathvite.web.config.ts
File metadata and controls
31 lines (30 loc) · 781 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
import { resolve } from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
root: resolve('src/renderer'),
// Why: pairing URLs may live under a reverse-proxy path prefix like
// /orca/web-index.html, so built assets must resolve relative to the page.
base: './',
plugins: [react(), tailwindcss()],
define: {
ORCA_FEATURE_WALL_ENABLED: 'true'
},
resolve: {
alias: {
'@renderer': resolve('src/renderer/src'),
'@': resolve('src/renderer/src')
}
},
build: {
outDir: resolve('out/web'),
emptyOutDir: true,
rollupOptions: {
input: resolve('src/renderer/web-index.html')
}
},
worker: {
format: 'es'
}
})