This commit is contained in:
icssoa 2022-10-07 19:24:36 +08:00
parent cd524003b3
commit 74b83f645c

View File

@ -53,7 +53,9 @@ export default (): UserConfig => {
assetFileNames: "static/[ext]/[name]-[hash].[ext]", assetFileNames: "static/[ext]/[name]-[hash].[ext]",
manualChunks(id) { manualChunks(id) {
if (id.includes("node_modules")) { 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]; let str = id.toString().split("node_modules/")[1];
if (str[0] == "@") { if (str[0] == "@") {