Skip to content

Commit 1bc4aca

Browse files
author
Jon M. Mease
committed
Cleanup js webpack config a little. Remove unused json transform
1 parent 49e0075 commit 1bc4aca

File tree

3 files changed

+21
-24
lines changed

3 files changed

+21
-24
lines changed

Diff for: js/package-lock.json

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: js/package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,18 @@
2020
],
2121
"scripts": {
2222
"clean": "rimraf dist/ && rimraf ../plotlywidget/static",
23-
"build": "webpack",
24-
"prepublish": "npm run clean && npm run build",
23+
"prepublish": "webpack",
2524
"test": "echo \"Error: no test specified\" && exit 1"
2625
},
2726
"devDependencies": {
28-
"json-loader": "^0.5.4",
29-
"webpack": "^3.5.5",
27+
"webpack": "^3.10.0",
3028
"rimraf": "^2.6.1",
3129
"ify-loader": "^1.1.0"
3230
},
3331
"dependencies": {
3432
"plotly.js": "^1.35.2",
35-
"@jupyter-widgets/base": "^1.0.4",
36-
"lodash": "^4.0"
33+
"@jupyter-widgets/base": "^1.0.0",
34+
"lodash": "^4.17.4"
3735
},
3836
"jupyterlab": {
3937
"extension": "src/jupyterlab-plugin"

Diff for: js/webpack.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ var version = require('./package.json').version;
55
// stored in a separate local variable.
66
var rules = [
77
{ test: /\.css$/, use: ['style-loader', 'css-loader']},
8-
{ test: /\.json$/, use: 'json-loader' },
9-
{ test: /\.js$/, use: 'ify-loader' }
8+
{ test: /\.js$/, use: ['ify-loader']}
109
];
1110

1211

0 commit comments

Comments
 (0)