浏览文件
vite.config.js
12 行 · 391 B历史下载| 1 | import { defineConfig } from "vite"; |
| 2 | import react from "@vitejs/plugin-react"; |
| 3 | export default defineConfig({ |
| 4 | plugins: [react()], |
| 5 | base: "/", |
| 6 | build: { |
| 7 | outDir: "../internal/workbench/web", |
| 8 | emptyOutDir: true, |
| 9 | rolldownOptions: { input: { desktop: "index.html", mobile: "mobile.html" } }, |
| 10 | }, |
| 11 | server: { proxy: { "/api": { target: "http://localhost:17777", ws: true } } }, |
| 12 | }); |

