Change chunk split setting

This commit is contained in:
NI
2020-07-16 10:03:21 +08:00
parent c4c2aee482
commit 4c15c1d2f9

View File

@@ -208,11 +208,12 @@ module.exports = {
? {} ? {}
: { : {
chunks: "all", chunks: "all",
minSize: 12800, minSize: 102400,
maxSize: 244000,
automaticNameDelimiter: ".", automaticNameDelimiter: ".",
automaticNameMaxLength: 8, automaticNameMaxLength: 8,
maxAsyncRequests: 5, maxAsyncRequests: 8,
maxInitialRequests: 6, maxInitialRequests: 8,
name: true, name: true,
}, },
minimize: process.env.NODE_ENV !== "development", minimize: process.env.NODE_ENV !== "development",
@@ -412,7 +413,7 @@ module.exports = {
pngquant: { pngquant: {
speed: 3, speed: 3,
strip: true, strip: true,
quality: "0-5", quality: "0-3",
}, },
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({