2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

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

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++) {