note/question

This commit is contained in:
Michael Bradley, Jr 2018-08-16 15:56:48 -05:00
parent 2f2f007d5c
commit 6282e092f1
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ class Pipeline {
self.events.request('embark-building-placeholder', (html) => { self.events.request('embark-building-placeholder', (html) => {
fs.mkdirpSync(self.buildDir); // create dist/ folder if not already exists fs.mkdirpSync(self.buildDir); // create dist/ folder if not already exists
fs.writeFile(self.buildDir + 'index.html', html, next); fs.writeFile(self.buildDir + 'index.html', html, next);
// ^ ?? should this use path.join instead? templates' embark.json
// files have a '/' hardcoded on the end of buildDir but that doesn't
// seem too resilient
}); });
}, },
function buildTheContracts(next) { function buildTheContracts(next) {