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

Commit

Permalink
fix: json-loader error in upload-file-via-browser example (#784)
Browse files Browse the repository at this point in the history
* fixed json-loader error

* add DS_Store

* removed DS_Store

* removed json-loader
  • Loading branch information
leekt authored and alanshaw committed Jun 6, 2018
1 parent e9f22b5 commit 5e7b7c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/upload-file-via-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
"babel-core": "^5.4.7",
"babel-loader": "^5.1.2",
"ipfs-api": "../../",
"json-loader": "~0.5.4",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-hot-loader": "^1.3.1",
"webpack": "^1.9.6",
"webpack": "^2.0.0",
"webpack-dev-server": "^1.8.2"
}
}
4 changes: 2 additions & 2 deletions examples/upload-file-via-browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ module.exports = {
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
loaders: ['react-hot-loader', 'babel-loader'],
include: path.join(__dirname, 'src')
}, { test: /\.json$/, loader: 'json-loader' }]
}]
},
node: {
fs: 'empty',
Expand Down

0 comments on commit 5e7b7c4

Please sign in to comment.