From 74b83f645cb8e1e3c9af7ba66a2c8251bc31a7da Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Fri, 7 Oct 2022 19:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index b6a01c4..d46fc9c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -53,7 +53,9 @@ export default (): UserConfig => { assetFileNames: "static/[ext]/[name]-[hash].[ext]", manualChunks(id) { if (id.includes("node_modules")) { - if (!["@cool-vue/crud"].find((e) => id.includes(e))) { + if ( + !["@cool-vue/crud", "@cool-vue/admin"].find((e) => id.includes(e)) + ) { let str = id.toString().split("node_modules/")[1]; if (str[0] == "@") {