diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 7e7fe345..63225cf3 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -111,13 +111,16 @@ class Pipeline { }); }, function assetFileWrite(next) { - async.eachOf(self.assetFiles, function (files, targetFile, cb) { - async.map(files, + async.eachOf( + self.assetFiles, + function (files, targetFile, cb) { const isDir = targetFile.slice(-1) === '/' || targetFile.indexOf('.') === -1; // if it's not a directory if (!isDir) { self.logger.info(__("writing file") + " " + (self.buildDir + targetFile).bold.dim); } + async.map( + files, function (file, fileCb) { self.logger.trace("reading " + file.filename); @@ -192,7 +195,8 @@ class Pipeline { } ); }, - next); + next + ); }, function removePlaceholderPage(next){ let placeholderFile = self.buildDir + placeholderPage; @@ -212,7 +216,8 @@ class Pipeline { if (self.pipelinePlugins.length <= 0) { return fileCb(null, {content: fileContent, filename: file.filename, path: file.path, basedir: file.basedir, modified: true}); } - async.eachSeries(self.pipelinePlugins, + async.eachSeries( + self.pipelinePlugins, function(plugin, pluginCB) { if (file.options && file.options.skipPipeline) { return pluginCB();