Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
23 lines
393 B
JavaScript
23 lines
393 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3011,
|
|
proxy: {
|
|
'/api': 'http://localhost:3010',
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
react: ['react', 'react-dom'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|