diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index a1368d1b7..53dda9afb 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -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;