Add webpack runtime chunk (#8976)

This commit is contained in:
Jaco 2023-02-08 12:15:38 +02:00 committed by GitHub
parent 182bb9d975
commit 8497b704b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,7 @@ function createWebpack (context, mode = 'production') {
},
optimization: {
minimize: mode === 'production',
runtimeChunk: 'single',
splitChunks: {
cacheGroups: {
// As far as possible, we try and keep this below 1M in size.