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); }); },