feat: desktop build support and build list UI improvements

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 21:57:39 +08:00
parent 112337fd9e
commit 2d42c7ef71
13 changed files with 509 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
export default defineConfig(({ mode }) => ({
plugins: [react()],
server: {
port: 5173,
@@ -13,7 +13,7 @@ export default defineConfig({
},
},
build: {
outDir: "dist",
outDir: mode === "desktop" ? "dist-desktop" : "dist",
emptyOutDir: true,
},
});
}));