Unverified Commit 9c6d7bbd authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure server split chunks are nested in chunks dir (#25203)

parent 7426ebcb
......@@ -824,13 +824,14 @@ export default async function getBaseWebpackConfig(
nodeEnv: false,
splitChunks: isServer
? isWebpack5
? {
? ({
filename: `${dev ? '[name]' : '[name].[contenthash]'}.js`,
// allow to split entrypoints
chunks: 'all',
// size of files is not so relevant for server build
// we want to prefer deduplication to load less code
minSize: 1000,
}
} as any)
: false
: splitChunksConfig,
runtimeChunk: isServer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment