This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ function display (hash) {
31
31
} )
32
32
}
33
33
34
- document . getElementById ( 'store' ) . onclick = store
34
+ document . addEventListener ( 'DOMContentLoaded' , ( ) => {
35
+ document . getElementById ( 'store' ) . onclick = store
36
+ } )
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "start" : " browserify -t brfs index.js > bundle.js && http-server -a 127.0.0.1 -p 8888"
7
+ "start" : " webpack index.js bundle.js && http-server -a 127.0.0.1 -p 8888"
8
8
},
9
9
"keywords" : [],
10
10
"author" : " Friedel Ziegelmayer" ,
11
11
"license" : " MIT" ,
12
12
"devDependencies" : {
13
13
"brfs" : " ^1.4.3" ,
14
- "browserify" : " ^13.0.1" ,
15
14
"http-server" : " ^0.9.0" ,
16
- "ipfs-api" : " ^6.0.3"
15
+ "ipfs-api" : " ^6.0.3" ,
16
+ "json-loader" : " ^0.5.4" ,
17
+ "webpack" : " ^2.1.0-beta.20"
17
18
}
18
19
}
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ module : {
3
+ loaders : [ {
4
+ test : / \. j s o n / ,
5
+ loader : 'json'
6
+ } ] ,
7
+ preLoaders : [ {
8
+ test : / \. j s $ / ,
9
+ loader : 'transform?brfs'
10
+ } ]
11
+ }
12
+ }
You can’t perform that action at this time.
0 commit comments