isDir test should support possible use of '\' by devs on Windows
This commit is contained in:
parent
8bec33177e
commit
9e62d9c1a9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue