Skip to content

Commit ab51a17

Browse files
committed
add webpack config for consistent builds across platforms
1 parent 5481287 commit ab51a17

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

js/package.json

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

js/webpack.config.js

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

plotly/labextension/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
"jupyterlab": {
3232
"mimeExtension": true,
3333
"outputDir": "../plotly/labextension",
34+
"webpackConfig": "./webpack.config.js",
3435
"_build": {
35-
"load": "static/remoteEntry.6213e23b3bdd99ae0b34.js",
36+
"load": "static/remoteEntry.a90ef69e866c18565afe.js",
3637
"mimeExtension": "./mimeExtension"
3738
}
3839
}

plotly/labextension/static/1.f29faa6937f75272d9d5.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plotly/labextension/static/340.330950829c5d59eca692.js.LICENSE.txt renamed to plotly/labextension/static/1.f29faa6937f75272d9d5.js.LICENSE.txt

File renamed without changes.

plotly/labextension/static/340.330950829c5d59eca692.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

plotly/labextension/static/remoteEntry.6213e23b3bdd99ae0b34.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

plotly/labextension/static/remoteEntry.a90ef69e866c18565afe.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)