diff --git a/compiler/webpack.config.js b/compiler/webpack.config.js index d8da28cc656362b4a09e25bf6a1e0ae96d0416c2..bebea8d562e13159e9e47215f89ff83ef61f4e0e 100644 --- a/compiler/webpack.config.js +++ b/compiler/webpack.config.js @@ -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 } }