File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,9 @@ Config.prototype.loadFiles = function(files) {
256256 readFiles . push ( { filename : file , content : web3Content , path : fs . embarkPath ( "js/web3.js" ) } ) ;
257257 } ) ;
258258 }
259+ if ( file === "web3.js" ) {
260+ readFiles . push ( { filename : 'web3.js' , content : fs . readFileSync ( fs . embarkPath ( "js/web3.js" ) ) . toString ( ) , path : fs . embarkPath ( "js/web3.js" ) } ) ;
261+ }
259262 } ) ;
260263
261264 // get plugins
@@ -290,6 +293,8 @@ Config.prototype.loadFiles = function(files) {
290293 return ;
291294 } else if ( file . indexOf ( "web3-" ) === 0 ) {
292295 return ;
296+ } else if ( file . indexOf ( "web3" ) === 0 ) {
297+ return ;
293298 } else if ( file === 'abi.js' ) {
294299 readFiles . push ( { filename : file , content : "" , path : file } ) ;
295300 } else {
Original file line number Diff line number Diff line change 1111 "index.html" : " app/index.html" ,
1212 "test.html" : " app/test.html" ,
1313 "test2.html" : " app/test2.html" ,
14- "js/myweb3.js" : " web3-0.18.js"
14+ "js/myweb3.js" : " web3-0.18.js" ,
15+ "js/web3.js" : " web3.js"
1516 },
1617 "buildDir" : " dist/" ,
1718 "config" : " config/" ,
You can’t perform that action at this time.
0 commit comments