kopia lustrzana https://github.com/nolanlawson/pinafore
use chunks:all in webpack splitChunks (#193)
* use chunks:all in webpack splitChunks * tweak webpack settingspull/201/head
rodzic
1f6e7066ed
commit
bf36667002
|
@ -65,12 +65,16 @@ module.exports = {
|
|||
}
|
||||
}),
|
||||
new OptimizeCSSAssetsPlugin({})
|
||||
]
|
||||
],
|
||||
splitChunks: {
|
||||
chunks: 'async',
|
||||
minSize: 5000,
|
||||
maxAsyncRequests: Infinity,
|
||||
maxInitialRequests: Infinity
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
new LodashModuleReplacementPlugin({
|
||||
caching: true
|
||||
})
|
||||
new LodashModuleReplacementPlugin()
|
||||
].concat(isDev ? [
|
||||
new webpack.HotModuleReplacementPlugin({
|
||||
requestTimeout: 120000
|
||||
|
|
Ładowanie…
Reference in New Issue