diff --git a/src/views/distribution/delivery/distributionDelivery.vue b/src/views/distribution/delivery/distributionDelivery.vue
index 400b2ffd..16412cb2 100644
--- a/src/views/distribution/delivery/distributionDelivery.vue
+++ b/src/views/distribution/delivery/distributionDelivery.vue
@@ -144,7 +144,7 @@
-
diff --git a/vite.config.js b/vite.config.js
index a40af650..b93c008b 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -29,5 +29,22 @@ export default ({ mode, command }) => {
},
},
plugins: createVitePlugins(env, command === 'build'),
+ build: {
+ chunkSizeWarningLimit: 1000,
+ rollupOptions: {
+ output: {
+ // 分包
+ manualChunks(id) {
+ if (id.includes("node_modules")) {
+ return id
+ .toString()
+ .split("node_modules/")[1]
+ .split("/")[0]
+ .toString();
+ }
+ },
+ },
+ },
+ }
});
};