Explorar el Código

chore: Chunking Strategy

CaIon hace 1 año
padre
commit
06c86397e1
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      web/vite.config.js

+ 13 - 0
web/vite.config.js

@@ -29,6 +29,19 @@ export default defineConfig({
       },
     },
   },
+  build: {
+    rollupOptions: {
+      output: {
+        manualChunks: {
+          'react-vendor': ['react', 'react-dom'],
+          'semi': ['@douyinfe/semi-ui'],
+          'icons': ['@douyinfe/semi-icons'],
+          'semantic': ['semantic-ui-react'],
+          'visactor': ['@visactor/react-vchart', '@visactor/vchart']
+        },
+      },
+    },
+  },
   server: {
     proxy: {
       '/api': {