import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], server: { port: 5173, open: true, proxy: { '/api': { target: 'http://localhost:8200', changeOrigin: true, secure: false } } }, build: { outDir: 'dist', sourcemap: false, minify: 'esbuild', rollupOptions: { output: { manualChunks: { vendor: ['react', 'react-dom'], antd: ['antd', '@ant-design/icons'], router: ['react-router-dom'] } } } }, css: { preprocessorOptions: { less: { javascriptEnabled: true, } } } })