Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 5e7b7c4

Browse files
leektalanshaw
authored andcommitted
fix: json-loader error in upload-file-via-browser example (#784)
* fixed json-loader error * add DS_Store * removed DS_Store * removed json-loader
1 parent e9f22b5 commit 5e7b7c4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/upload-file-via-browser/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
"babel-core": "^5.4.7",
1515
"babel-loader": "^5.1.2",
1616
"ipfs-api": "../../",
17-
"json-loader": "~0.5.4",
1817
"react": "^15.4.2",
1918
"react-dom": "^15.4.2",
2019
"react-hot-loader": "^1.3.1",
21-
"webpack": "^1.9.6",
20+
"webpack": "^2.0.0",
2221
"webpack-dev-server": "^1.8.2"
2322
}
2423
}

examples/upload-file-via-browser/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ module.exports = {
2121
module: {
2222
loaders: [{
2323
test: /\.js$/,
24-
loaders: ['react-hot', 'babel'],
24+
loaders: ['react-hot-loader', 'babel-loader'],
2525
include: path.join(__dirname, 'src')
26-
}, { test: /\.json$/, loader: 'json-loader' }]
26+
}]
2727
},
2828
node: {
2929
fs: 'empty',

0 commit comments

Comments
 (0)