mirror of https://github.com/embarklabs/embark.git
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")});
|
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
|
// get plugins
|
||||||
|
@ -290,6 +293,8 @@ Config.prototype.loadFiles = function(files) {
|
||||||
return;
|
return;
|
||||||
} else if (file.indexOf("web3-") === 0) {
|
} else if (file.indexOf("web3-") === 0) {
|
||||||
return;
|
return;
|
||||||
|
} else if (file.indexOf("web3") === 0) {
|
||||||
|
return;
|
||||||
} else if (file === 'abi.js') {
|
} else if (file === 'abi.js') {
|
||||||
readFiles.push({filename: file, content: "", path: file});
|
readFiles.push({filename: file, content: "", path: file});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
"index.html": "app/index.html",
|
"index.html": "app/index.html",
|
||||||
"test.html": "app/test.html",
|
"test.html": "app/test.html",
|
||||||
"test2.html": "app/test2.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/",
|
"buildDir": "dist/",
|
||||||
"config": "config/",
|
"config": "config/",
|
||||||
|
|
Loading…
Reference in New Issue