Fix backslashes in source-map paths on Windows
This commit is contained in:
committed by
Richard van Velzen
parent
aa5dd15352
commit
718e475613
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user