diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 9b8192e..184d341 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -27,6 +27,15 @@ module.exports = merge(baseConfig, { runtimeChunk: true, splitChunks: { name: 'vendor', + cacheGroups: { + commons: { + chunks: 'initial', + minChunks: 2, + maxInitialRequests: 5, + minSize: 2, + name: 'common', + }, + }, }, }, mode: 'production',