mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-18 16:04:32 -04:00
exclude workers file. Signed-off-by: lihong <lihong67@huawei.com> Change-Id: I99f2fe4d1c7f7a75b0831286659e7d6f67d9e561
This commit is contained in:
@@ -48,20 +48,20 @@ function initConfig(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: {
|
||||
name: 'commons',
|
||||
priority: -20,
|
||||
minChunks: 2,
|
||||
chunks: 'initial',
|
||||
reuseExistingChunk: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user