From 3573d22170e89d128b8c22c05597e37af78f08c6 Mon Sep 17 00:00:00 2001 From: lihong Date: Fri, 7 Jan 2022 18:09:07 +0800 Subject: [PATCH] lihong67@huawei.com exclude workers file. Signed-off-by: lihong Change-Id: Icc0011d8b5436d7f11760b1017542fc333ded67f --- ace-loader/webpack.rich.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ace-loader/webpack.rich.config.js b/ace-loader/webpack.rich.config.js index 01d3a01..ecc9cc2 100644 --- a/ace-loader/webpack.rich.config.js +++ b/ace-loader/webpack.rich.config.js @@ -139,21 +139,21 @@ let config = { }, optimization: { splitChunks: { - chunks: "all", + chunks(chunk) { + return !/^\.\/workers\//.test(chunk.name); + }, minSize: 0, cacheGroups: { vendors: { test: /[\\/]node_modules[\\/]/, priority: -10, name: "vendors", - chunks: 'initial' }, commons: { test: /\.js|css|hml$/, name: 'commons', priority: -20, minChunks: 2, - chunks: 'initial', reuseExistingChunk: true } } -- Gitee