You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
530 B
28 lines
530 B
import { defineConfig } from 'vite' |
|
import react from '@vitejs/plugin-react' |
|
|
|
export default defineConfig({ |
|
plugins: [react()], |
|
server: { |
|
port: 5173 |
|
}, |
|
build: { |
|
rollupOptions: { |
|
output: { |
|
manualChunks: { |
|
'react-vendor': ['react', 'react-dom', 'react-router-dom'], |
|
'ui-vendor': ['axios'] |
|
} |
|
} |
|
}, |
|
chunkSizeWarningLimit: 1000, |
|
cssCodeSplit: true, |
|
minify: 'esbuild' |
|
}, |
|
optimizeDeps: { |
|
include: ['react', 'react-dom', 'react-router-dom'] |
|
} |
|
}) |
|
|
|
|
|
|
|
|