forked from tscircuit/autorouting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
26 lines (25 loc) · 697 Bytes
/
vite.config.js
File metadata and controls
26 lines (25 loc) · 697 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
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import path from "node:path"
export default defineConfig({
// TODO: we're currently duplicating the frontend code for every single page
// that we output, which is super wasteful. To make this more efficient, we
// should fix the dev-server to allow serving vite chunks properly.
plugins: [react()],
root: "frontend",
build: {
outDir: "../frontend-dist",
emptyOutDir: true,
rollupOptions: {
output: {
manualChunks: undefined,
entryFileNames: "assets/index.js",
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./frontend"),
},
},
})