Explorar o código

Merge pull request #9359 from jasongrout/chunks

Chunk the jupyterlab and lumino modules together when building the core application
Steven Silvester %!s(int64=4) %!d(string=hai) anos
pai
achega
71a6d84164
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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: {