Skip to content

Commit 498ba49

Browse files
committed
add optimization
1 parent f933481 commit 498ba49

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

app/webpack.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,18 @@ module.exports = [
214214
type: 'var',
215215
name: ['_JUPYTERLAB', 'CORE_OUTPUT'],
216216
},
217-
filename: 'bundle.js',
217+
filename: '[name].[contenthash].js',
218+
},
219+
optimization: {
220+
splitChunks: {
221+
chunks: 'all',
222+
cacheGroups: {
223+
jlab_core: {
224+
test: /[\\/]node_modules[\\/]@(jupyterlab|jupyter-notebook|lumino(?!\/datagrid))[\\/]/,
225+
name: 'notebook_core',
226+
},
227+
},
228+
},
218229
},
219230
resolve: {
220231
fallback: { util: false },

0 commit comments

Comments
 (0)