adjust splitChunks defaults for http/2

This commit is contained in:
Tobias Koppers 2020-07-13 10:13:27 +02:00
parent 6014ca7e86
commit b60fb2742a
1 changed files with 2 additions and 4 deletions

View File

@ -580,11 +580,9 @@ const applyOptimizationDefaults = (
D(splitChunks, "hidePathInfo", production);
D(splitChunks, "chunks", "async");
D(splitChunks, "minChunks", 1);
F(splitChunks, "minSize", () => (production ? 30000 : 10000));
F(splitChunks, "minSize", () => (production ? 20000 : 10000));
F(splitChunks, "minRemainingSize", () => (development ? 0 : undefined));
F(splitChunks, "enforceSizeThreshold", () =>
production ? undefined : 100000
);
F(splitChunks, "enforceSizeThreshold", () => (production ? 50000 : 30000));
F(splitChunks, "maxAsyncRequests", () => (production ? 30 : Infinity));
F(splitChunks, "maxInitialRequests", () => (production ? 30 : Infinity));
D(splitChunks, "automaticNameDelimiter", "-");