mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05: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',
|
||||
colors: true,
|
||||
},
|
||||
|
||||
optimization: {
|
||||
runtimeChunk: {
|
||||
name: 'runtime',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -110,6 +110,10 @@ module.exports = {
|
|||
splitChunks: {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue