This cuts a stock build of jlab from 114 js file requests down to 25 requests.
@@ -293,7 +293,13 @@ module.exports = [
},
optimization: {
splitChunks: {
- chunks: 'all'
+ chunks: 'all',
+ cacheGroups: {
+ jlab_core: {
+ test: /[\\/]node_modules[\\/]@(jupyterlab|lumino)[\\/]/,
+ name: 'jlab_core'
+ }
}
module: {