38 lines
1020 B
JavaScript
38 lines
1020 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: false,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
vendor: ['react', 'react-dom', 'react-router-dom'],
|
|
viewers: [
|
|
'./src/components/KitchenViewer/KitchenViewer',
|
|
'./src/components/BathViewer/BathViewer',
|
|
'./src/components/StairViewer/StairViewer',
|
|
'./src/components/RoomViewer/RoomViewer',
|
|
'./src/components/BedroomViewer/BedroomViewer',
|
|
'./src/components/ClosetViewer/ClosetViewer',
|
|
'./src/components/TerraceViewer/TerraceViewer',
|
|
'./src/components/WireframeViewer/WireframeViewer',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
chunkSizeWarningLimit: 600,
|
|
},
|
|
})
|