Explorar o código

Chunk the jupyterlab and lumino modules together when building the core application.

This cuts a stock build of jlab from 114 js file requests down to 25 requests.
Jason Grout %!s(int64=4) %!d(string=hai) anos
pai
achega
8a57218c70
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: {