From 62c8668fc841677f85a1583cf700891303523760 Mon Sep 17 00:00:00 2001 From: zhangsiyu Date: Sun, 25 Jun 2023 14:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../delivery/distributionDelivery.vue | 2 +- src/views/distribution/reservation/atlas.vue | 211 ++++++++---------- vite.config.js | 17 ++ 3 files changed, 107 insertions(+), 123 deletions(-) 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(); + } + }, + }, + }, + } }); };