-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
vite.config.js
32 lines (22 loc) · 841 Bytes
/
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
import path from "path";
import vue from '@vitejs/plugin-vue';
export default {
plugins: [
vue(),
],
// vite app is loaded from /src/frontend
root: path.join(__dirname, "src", "frontend"),
build: {
// we want to compile vite app to /public which is bundled and served by the python executable
outDir: path.join(__dirname, "public"),
emptyOutDir: true,
rollupOptions: {
input: {
// we want to use /src/frontend/index.html as the entrypoint for this vite app
app: path.join(__dirname, "src", "frontend", "index.html"),
// we want to use /src/frontend/call.html as the entrypoint for the phone call app
call: path.join(__dirname, "src", "frontend", "call.html"),
},
},
},
}