mirror of https://github.com/embarklabs/embark.git
fix order and remove ?
This commit is contained in:
parent
047286b46d
commit
56147ba200
|
@ -86,13 +86,13 @@ class Pipeline {
|
|||
function runWebpack(next) {
|
||||
self.logger.info(__(`running webpack with '${self.webpackConfigName}' config...`));
|
||||
const assets = Object.keys(self.assetFiles)
|
||||
.filter(key => key.match(/\.js?$/));
|
||||
assets.forEach(key => {
|
||||
self.logger.info(__("writing file") + " " + (utils.joinPath(self.buildDir, key)).bold.dim);
|
||||
});
|
||||
.filter(key => key.match(/\.js$/));
|
||||
if (!assets || !assets.length) {
|
||||
return next();
|
||||
}
|
||||
assets.forEach(key => {
|
||||
self.logger.info(__("writing file") + " " + (utils.joinPath(self.buildDir, key)).bold.dim);
|
||||
});
|
||||
let built = false;
|
||||
const webpackProcess = new ProcessLauncher({
|
||||
modulePath: utils.joinPath(__dirname, 'webpackProcess.js'),
|
||||
|
@ -120,7 +120,7 @@ class Pipeline {
|
|||
async.eachOf(
|
||||
// assetFileWrite should not process .js files
|
||||
Object.keys(self.assetFiles)
|
||||
.filter(key => !key.match(/\.js?$/))
|
||||
.filter(key => !key.match(/\.js$/))
|
||||
.reduce((obj, key) => {
|
||||
obj[key] = self.assetFiles[key];
|
||||
return obj;
|
||||
|
|
Loading…
Reference in New Issue