From b419c0f5045c30ec8e498487b16f353d557da9d9 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Fri, 22 Mar 2024 17:45:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BC=96=E8=AF=91=E4=BC=98=E5=8C=96:2?= =?UTF-8?q?M=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/index.js b/config/index.js index 56d1e1c..e0f4fbb 100644 --- a/config/index.js +++ b/config/index.js @@ -58,7 +58,11 @@ export default defineConfig(async (merge, { command, mode }) => { generateScopedName: '[name]__[local]___[hash:base64:5]' } } - } + }, + // δΌ˜εŒ–εˆ†εŒ… + optimizeMainPackage: { + enable: true, + }, }, h5: { publicPath: '/',