Browse Source

fix: web resource outDir

GyDi 3 years ago
parent
commit
eddf10e740
1 changed files with 3 additions and 0 deletions
  1. 3 0
      vite.config.ts

+ 3 - 0
vite.config.ts

@@ -5,4 +5,7 @@ import react from "@vitejs/plugin-react";
 export default defineConfig({
 export default defineConfig({
   root: "src",
   root: "src",
   plugins: [react()],
   plugins: [react()],
+  build: {
+    outDir: "../dist",
+  },
 });
 });