Update Vite configuration to set project root and adjust build output directory

This commit is contained in:
yctimlin
2025-11-01 08:51:35 +00:00
parent 2c510c500d
commit 7bb804945b
+3 -6
View File
@@ -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,