diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index d29531f27..7e7fe3453 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -113,6 +113,11 @@ class Pipeline { function assetFileWrite(next) { async.eachOf(self.assetFiles, function (files, targetFile, cb) { async.map(files, + 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); + } function (file, fileCb) { self.logger.trace("reading " + file.filename); @@ -156,7 +161,7 @@ class Pipeline { fs.mkdirpSync(self.buildDir + dir); // if it's a directory - if (targetFile.slice(-1) === '/' || targetFile.indexOf('.') === -1) { + if (isDir) { let targetDir = targetFile; if (targetDir.slice(-1) !== '/') { @@ -179,7 +184,6 @@ class Pipeline { return file.content; }).join("\n"); - self.logger.info(__("writing file") + " " + (self.buildDir + targetFile).bold.dim); if(new RegExp(/^index.html?/i).test(targetFile)){ targetFile = targetFile.replace('index', 'index-temp'); placeholderPage = targetFile;