Skip to content

Instantly share code, notes, and snippets.

@SevereOverfl0w
Created July 17, 2014 14:12
Show Gist options
  • Save SevereOverfl0w/949d4f012d23b01dd09d to your computer and use it in GitHub Desktop.
Save SevereOverfl0w/949d4f012d23b01dd09d to your computer and use it in GitHub Desktop.
this.fetch(this.store_url.href, 'app', function() {
var indexHtml = fs.readFileSync('app/' + store_url.hostname).toString();
indexHtml = indexHtml.replace(/\/assets/g, store_url.href + "assets");
fs.writeFileSync('app/index.html', indexHtml);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment