Skip to content

Commit

Permalink
add optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 15, 2024
1 parent dcca490 commit 925e5aa
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 925e5aa

Please sign in to comment.