Fixed initial load being slow

This commit is contained in:
2026-02-19 21:38:39 +00:00
parent edc1327987
commit e452b66a7f
8 changed files with 69 additions and 84 deletions
+14
View File
@@ -9,6 +9,20 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
build: {
rollupOptions: {
output: {
manualChunks: {
'vendor-react': ['react', 'react-dom'],
'vendor-d3': ['d3'],
'vendor-motion': ['framer-motion'],
'vendor-search': ['fuse.js'],
'vendor-markdown': ['react-markdown'],
'vendor-carousel': ['embla-carousel-react', 'embla-carousel-autoplay'],
},
},
},
},
server: {
proxy: {
'/api': 'http://localhost:3000',