mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 17:21:34 +00:00
Move runtimeChunk optimisation to production webpack config (#18982)
GitOrigin-RevId: 99b0923cee62118fbd69e234c16bf1eb0ace6abc
This commit is contained in:
parent
0e9bb32016
commit
d7ded4d0cb
2 changed files with 4 additions and 6 deletions
|
@ -93,10 +93,4 @@ module.exports = merge(base, {
|
||||||
preset: 'minimal',
|
preset: 'minimal',
|
||||||
colors: true,
|
colors: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
optimization: {
|
|
||||||
runtimeChunk: {
|
|
||||||
name: 'runtime',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -110,6 +110,10 @@ module.exports = {
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
chunks: 'all', // allow non-async chunks to be analysed for shared modules
|
chunks: 'all', // allow non-async chunks to be analysed for shared modules
|
||||||
},
|
},
|
||||||
|
// https://webpack.js.org/configuration/optimization/#optimizationruntimechunk
|
||||||
|
runtimeChunk: {
|
||||||
|
name: 'runtime',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Define how file types are handled by webpack
|
// Define how file types are handled by webpack
|
||||||
|
|
Loading…
Reference in a new issue