Skip to content

Commit

Permalink
Merge pull request #354 from javier-tarazaga/fix-yarn-start
Browse files Browse the repository at this point in the history
Fix yarn start
  • Loading branch information
javier-tarazaga authored Jan 17, 2019
2 parents d2c0833 + d97cf1c commit ef2f353
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ const paths = require('../config/paths');
function buildWeb3Provider() {
let fileContent = fs.readFileSync(paths.appSrc + '/components/superprovider/web3provider.js', { encoding: 'utf-8' });
fileContent = fileContent.replace(/ORIGIN/g, "'" + process.env.ORIGIN + "'");
fs.writeFileSync(paths.appSrc + '/components/superprovider/dist/web3provider.js', fileContent, { encoding: 'utf-8' });
let distPath = paths.appSrc + '/components/superprovider/dist';
if(!fs.existsSync(distPath)) {
fs.mkdirSync(distPath);
}
fs.writeFileSync(distPath + '/web3provider.js', fileContent, { encoding: 'utf-8' });
}

module.exports = {
Expand Down

0 comments on commit ef2f353

Please sign in to comment.