Merge pull request #46 from zaggino/zaggino/fix-win

convert slashes on windows so unix-format ignores work
This commit is contained in:
=^._.^= 2015-05-21 21:06:19 -07:00
commit 37e319281c
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ function buildWinApp (opts, cb, newApp) {
}
function filter (file) {
// convert slashes so unix-format ignores work
file = file.replace(/\\/g, '/')
var ignore = opts.ignore || []
if (!Array.isArray(ignore)) ignore = [ignore]
for (var i = 0; i < ignore.length; i++) {