support specifying web3.js separetly
This commit is contained in:
parent
31ecaf0837
commit
61e44b31e9
|
@ -256,6 +256,9 @@ Config.prototype.loadFiles = function(files) {
|
|||
readFiles.push({filename: file, content: web3Content, path: fs.embarkPath("js/web3.js")});
|
||||
});
|
||||
}
|
||||
if (file === "web3.js") {
|
||||
readFiles.push({filename: 'web3.js', content: fs.readFileSync(fs.embarkPath("js/web3.js")).toString(), path: fs.embarkPath("js/web3.js")});
|
||||
}
|
||||
});
|
||||
|
||||
// get plugins
|
||||
|
@ -290,6 +293,8 @@ Config.prototype.loadFiles = function(files) {
|
|||
return;
|
||||
} else if (file.indexOf("web3-") === 0) {
|
||||
return;
|
||||
} else if (file.indexOf("web3") === 0) {
|
||||
return;
|
||||
} else if (file === 'abi.js') {
|
||||
readFiles.push({filename: file, content: "", path: file});
|
||||
} else {
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
"index.html": "app/index.html",
|
||||
"test.html": "app/test.html",
|
||||
"test2.html": "app/test2.html",
|
||||
"js/myweb3.js": "web3-0.18.js"
|
||||
"js/myweb3.js": "web3-0.18.js",
|
||||
"js/web3.js": "web3.js"
|
||||
},
|
||||
"buildDir": "dist/",
|
||||
"config": "config/",
|
||||
|
|
Loading…
Reference in New Issue