Skip to content

Commit 0a543ea

Browse files
committed
try webpack config (experimental)
1 parent 6e7df7c commit 0a543ea

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"jupyterlab": {
3232
"mimeExtension": true,
33+
"webpackConfig": "./webpack.config.js",
3334
"outputDir": "../plotly/labextension"
3435
}
3536
}

js/webpack.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
// Settings to make output files deterministic
3+
optimization: {
4+
moduleIds: 'deterministic',
5+
chunkIds: 'deterministic',
6+
realContentHash: true,
7+
},
8+
};

plotly/labextension/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"jupyterlab": {
3232
"mimeExtension": true,
33+
"webpackConfig": "./webpack.config.js",
3334
"outputDir": "../plotly/labextension",
3435
"_build": {
3536
"load": "static/remoteEntry.6213e23b3bdd99ae0b34.js",

0 commit comments

Comments
 (0)