Fix backslashes in source-map paths on Windows

This commit is contained in:
Derek Wickern 2014-10-23 16:27:53 -07:00
parent f36a1eaa8b
commit 0cd80c76ff

View File

@ -252,7 +252,7 @@ async.eachLimit(files, 1, function (file, cb) {
}
if (ARGS.p != null) {
if (P_RELATIVE) {
file = path.relative(path.dirname(ARGS.source_map), file);
file = path.relative(path.dirname(ARGS.source_map), file).replace(/\\/g, '/');
} else {
var p = parseInt(ARGS.p, 10);
if (!isNaN(p)) {