mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 09:46:37 +00:00
Merge pull request #451 from embark-framework/bug_fix/create-dist-folder-before-placeholder-page
Fixed bug where dist folder is created before placeholder page
This commit is contained in:
commit
204bcb8cfe
@ -31,6 +31,7 @@ class Pipeline {
|
|||||||
async.waterfall([
|
async.waterfall([
|
||||||
function createPlaceholderPage(next){
|
function createPlaceholderPage(next){
|
||||||
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.writeFile(self.buildDir + 'index.html', html, next);
|
fs.writeFile(self.buildDir + 'index.html', html, next);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user