aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Wickern <dwickern@s4isystems.com>2014-10-23 16:27:53 -0700
committerRichard van Velzen <rvanvelzen1@gmail.com>2015-01-04 19:08:19 +0100
commit718e4756134053bbcf62e9686f698fa3cb5a7e03 (patch)
tree64059c5b941ed50c35f5a6f5092add5b3ee9fde4
parentaa5dd1535245b3785704b2ac7075c2eb51ff42da (diff)
downloadtracifyjs-718e4756134053bbcf62e9686f698fa3cb5a7e03.tar.gz
tracifyjs-718e4756134053bbcf62e9686f698fa3cb5a7e03.zip
Fix backslashes in source-map paths on Windows
-rwxr-xr-xbin/uglifyjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index bade20cc..a177cb6f 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -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)) {