From eddf10e740c458f10d8757b2f66346f50adebac7 Mon Sep 17 00:00:00 2001 From: GyDi Date: Sun, 12 Dec 2021 00:39:28 +0800 Subject: [PATCH] fix: web resource outDir --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 28f78f6..bc72ba1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,4 +5,7 @@ import react from "@vitejs/plugin-react"; export default defineConfig({ root: "src", plugins: [react()], + build: { + outDir: "../dist", + }, });