Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 2074a72

Browse files
committed
update vite config
1 parent 4790589 commit 2074a72

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

vite.config.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,11 @@ import react from "@vitejs/plugin-react-swc";
55
// https://vite.dev/config/
66
export default defineConfig({
77
plugins: [react()],
8-
base: "./",
8+
base: "/",
99
build: {
1010
outDir: "dist",
1111
rollupOptions: {
1212
input: "./index.html",
13-
output: {
14-
manualChunks: (id) => {
15-
if (id.includes("components/Chat.tsx")) {
16-
return "chat";
17-
}
18-
19-
if (id.includes("lodash")) {
20-
return "lodash";
21-
}
22-
23-
if (id.includes("recharts")) {
24-
return "recharts";
25-
}
26-
},
27-
},
2813
},
2914
},
3015
resolve: {

0 commit comments

Comments
 (0)