-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Burnett
committed
Jul 2, 2018
1 parent
a601073
commit f25a75e
Showing
8 changed files
with
181 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//set geth exec permissions | ||
var sh = require('shelljs'); | ||
sh.find('./dist/assets/exe').forEach(f => { | ||
sh.chmod('+x', f); | ||
}); | ||
|
||
//replace baseref | ||
const replace = require('replace-in-file'); | ||
const options = { | ||
files: './dist/index.html', | ||
from: /base href="\/"/g, | ||
to: 'base href="./"', | ||
}; | ||
|
||
replace(options) | ||
.then(changes => { | ||
console.log('Modified files:', changes.join(', ')); | ||
}) | ||
.catch(error => { | ||
console.error('Error occurred:', error); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.