mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 20:19:33 +00:00
Fixed bug where dist folder is created before placeholder page
If dist folder did not already exist, the folder is created prior to creation of the placeholder page. Without this, the dapp files are never built.
This commit is contained in:
parent
0ef0342fe3
commit
ab1113fc31
@ -31,6 +31,7 @@ class Pipeline {
|
||||
async.waterfall([
|
||||
function createPlaceholderPage(next){
|
||||
self.events.request('embark-building-placeholder', (html) => {
|
||||
fs.mkdirpSync(self.buildDir); // create dist/ folder if not already exists
|
||||
fs.writeFile(self.buildDir + 'index.html', html, next);
|
||||
});
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user