mirror of https://github.com/embarklabs/embark.git
move asset files check from index to pipeline; index shouldn't know about the internals
This commit is contained in:
parent
59478f19ff
commit
448593b36f
|
@ -211,9 +211,6 @@ class Embark {
|
|||
return callback(null, true);
|
||||
}
|
||||
engine.logger.info("Finished deploying".underline);
|
||||
if (!engine.config.assetFiles || !Object.keys(engine.config.assetFiles).length) {
|
||||
return callback();
|
||||
}
|
||||
engine.events.on('outputDone', (err) => {
|
||||
engine.logger.info(__("finished building").underline);
|
||||
callback(err, true);
|
||||
|
|
|
@ -4,7 +4,6 @@ const ProcessLauncher = require('../process/processLauncher');
|
|||
const utils = require('../utils/utils.js');
|
||||
const constants = require('../constants');
|
||||
|
||||
|
||||
require("babel-preset-react");
|
||||
require("babel-preset-es2015");
|
||||
require("babel-preset-es2016");
|
||||
|
@ -27,6 +26,10 @@ class Pipeline {
|
|||
const importsList = {};
|
||||
let placeholderPage;
|
||||
|
||||
if (!this.assetFiles || !Object.keys(this.assetFiles).length) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
function createPlaceholderPage(next){
|
||||
self.events.request('embark-building-placeholder', (html) => {
|
||||
|
|
Loading…
Reference in New Issue