isDir test should support possible use of '\' by devs on Windows

This commit is contained in:
Michael Bradley, Jr 2018-08-20 14:07:53 -05:00
parent 8bec33177e
commit 9e62d9c1a9
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class Pipeline {
return obj;
}, {}),
function (files, targetFile, cb) {
const isDir = targetFile.slice(-1) === '/' || targetFile.indexOf('.') === -1;
const isDir = targetFile.slice(-1) === '/' || targetFile.slice(-1) === '\\' || targetFile.indexOf('.') === -1;
// if it's not a directory
if (!isDir) {
self.logger.info(__("writing file") + " " + (utils.joinPath(self.buildDir, targetFile)).bold.dim);