Skip to content
Snippets Groups Projects
Commit 75619636 authored by yamadapc's avatar yamadapc
Browse files

Update webpack example without JSON loader

parent c98c1790
No related branches found
No related tags found
No related merge requests found
......@@ -2,23 +2,6 @@
This is a demo of `steem-js` and webpack usage targetting both the Web and
Node.js platforms.
## Minimal configuration
`steem-js` requires JSON files internally, so you need JSON loader configured:
```json
{
...
module: {
loaders: [
{ test: /\.json$/, loader: 'json-loader'},
]
}
...
}
```
Make sure `resolve.extensions` and `json-loader`'s `module.loaders[...].exclude`
do not exclude `.json` files or `node_modules` from resolving.
## Compiling the example
Compiling for the web (`bundle.js`, which you can test with `open index.html`):
```
......
......@@ -6,7 +6,7 @@ module.exports = {
},
module: {
loaders: [
{ test: /\.json$/, loader: 'json-loader'},
// { test: /\.json$/, loader: 'json-loader'},
]
},
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment