fix relative paths to js files

This commit is contained in:
Iuri Matias 2016-10-02 19:36:13 -04:00
parent 0c54b9aa69
commit a19a690d3d
1 changed files with 3 additions and 3 deletions

View File

@ -80,10 +80,10 @@ Config.prototype.loadFiles = function(files) {
}).filter(function(file) {
if (file === 'embark.js') {
//readFiles.push({filename: 'bluebird.js', content: fs.readFileSync("../js/bluebird.js").toString()});
readFiles.push({filename: 'web3.js', content: fs.readFileSync("../js/web3.js").toString()});
readFiles.push({filename: 'web3.js', content: fs.readFileSync(__dirname + "/../js/web3.js").toString()});
//readFiles.push({filename: 'embark.js', content: fs.readFileSync("../js/ipfs.js").toString()+ fs.readFileSync("../js/build/embark.bundle.js").toString()});
readFiles.push({filename: 'ipfs.js', content: fs.readFileSync("../js/ipfs.js").toString()});
readFiles.push({filename: 'embark.js', content: fs.readFileSync("../js/build/embark.bundle.js").toString()});
readFiles.push({filename: 'ipfs.js', content: fs.readFileSync(__dirname + "/../js/ipfs.js").toString()});
readFiles.push({filename: 'embark.js', content: fs.readFileSync(__dirname + "/../js/build/embark.bundle.js").toString()});
} else {
readFiles.push({filename: file, content: fs.readFileSync(file).toString()});
}