From 7bb804945b9fe649fbc6e88ac67e79d680804a43 Mon Sep 17 00:00:00 2001 From: yctimlin Date: Sat, 1 Nov 2025 08:51:35 +0000 Subject: [PATCH] Update Vite configuration to set project root and adjust build output directory --- vite.config.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vite.config.js b/vite.config.js index 39f7d38..4e24f2b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,14 +2,11 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' export default defineConfig({ + root: 'frontend', plugins: [react()], build: { - outDir: 'dist', - rollupOptions: { - input: { - main: './frontend/index.html', - }, - }, + outDir: '../dist/frontend', + emptyOutDir: true, }, server: { port: 5173,