Skip to content

Commit

Permalink
add optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed May 3, 2024
1 parent f933481 commit 498ba49
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,18 @@ module.exports = [
type: 'var',
name: ['_JUPYTERLAB', 'CORE_OUTPUT'],
},
filename: 'bundle.js',
filename: '[name].[contenthash].js',
},
optimization: {
splitChunks: {
chunks: 'all',
cacheGroups: {
jlab_core: {
test: /[\\/]node_modules[\\/]@(jupyterlab|jupyter-notebook|lumino(?!\/datagrid))[\\/]/,
name: 'notebook_core',
},
},
},
},
resolve: {
fallback: { util: false },
Expand Down

0 comments on commit 498ba49

Please sign in to comment.