Parcourir la source

Merge pull request #9359 from jasongrout/chunks

Chunk the jupyterlab and lumino modules together when building the core application
Steven Silvester il y a 4 ans
Parent
commit
71a6d84164
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      dev_mode/webpack.config.js

+ 7 - 1
dev_mode/webpack.config.js

@@ -293,7 +293,13 @@ module.exports = [
     },
     optimization: {
       splitChunks: {
-        chunks: 'all'
+        chunks: 'all',
+        cacheGroups: {
+          jlab_core: {
+            test: /[\\/]node_modules[\\/]@(jupyterlab|lumino)[\\/]/,
+            name: 'jlab_core'
+          }
+        }
       }
     },
     module: {