fix order and remove ?

This commit is contained in:
Jonathan Rainville 2018-09-05 11:47:53 -04:00
parent 047286b46d
commit 56147ba200
1 changed files with 5 additions and 5 deletions

View File

@ -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;