mirror of https://github.com/webpack/webpack.git
adjust splitChunks defaults for http/2
This commit is contained in:
parent
6014ca7e86
commit
b60fb2742a
|
|
@ -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", "-");
|
||||
|
|
|
|||
Loading…
Reference in New Issue