Quellcode durchsuchen

:wrench: split vendor assets

Jeremy Zheng vor 2 Wochen
Ursprung
Commit
679e0713ad
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
  1. 12 0
      dashboard-v6/vite.config.ts

+ 12 - 0
dashboard-v6/vite.config.ts

@@ -11,5 +11,17 @@ export default defineConfig({
       "/api": "http://127.0.0.1:8000",
       "/api": "http://127.0.0.1:8000",
     },
     },
   },
   },
+  build: {
+    chunkSizeWarningLimit: 1000,
+    rollupOptions: {
+      output: {
+        manualChunks(id) {
+          if (id.includes("node_modules")) {
+            return "vendor";
+          }
+        },
+      },
+    },
+  },
   plugins: [react()],
   plugins: [react()],
 });
 });