From ab1113fc31697c1243dfe3b01e91630ef9a09127 Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Wed, 23 May 2018 13:35:18 +1000 Subject: [PATCH] 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. --- lib/pipeline/pipeline.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index d394b68a4..05f4d5e41 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -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); }); },