diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-05-22 11:30:54 -0700 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-05-22 11:30:54 -0700 |
commit | 2df48924ccfc5fc776597ac3938fede41b9b4bf5 (patch) | |
tree | 90b27fe51ad8be068f8f1d6d20ddae1af3cb585a | |
parent | 9fc6796d2a5f385500efc84020b5f6f73a6bb4a0 (diff) | |
parent | 3a218615804ceaf0fa1fcf7b8a0b3e10df3e6c86 (diff) | |
download | tracifyjs-2df48924ccfc5fc776597ac3938fede41b9b4bf5.tar.gz tracifyjs-2df48924ccfc5fc776597ac3938fede41b9b4bf5.zip |
Merge pull request #213 from mattrobenolt/patch-1
SourceMapping pragma has changed to //#
-rwxr-xr-x | bin/uglifyjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index b30b7599..2611d960 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -20,7 +20,7 @@ mangling you need to use `-c` and `-m`.\ ") .describe("source-map", "Specify an output file where to generate source map.") .describe("source-map-root", "The path to the original source to be included in the source map.") - .describe("source-map-url", "The path to the source map to be added in //@ sourceMappingURL. Defaults to the value passed with --source-map.") + .describe("source-map-url", "The path to the source map to be added in //# sourceMappingURL. Defaults to the value passed with --source-map.") .describe("in-source-map", "Input source map, useful if you're compressing JS that was generated from some other original code.") .describe("screw-ie8", "Pass this flag if you don't care about full compliance with Internet Explorer 6-8 quirks (by default UglifyJS will try to be IE-proof).") .describe("expr", "Parse a single expression, rather than a program (for parsing JSON)") @@ -309,7 +309,7 @@ async.eachLimit(files, 1, function (file, cb) { if (SOURCE_MAP) { fs.writeFileSync(ARGS.source_map, SOURCE_MAP, "utf8"); - output += "\n/*\n//@ sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map) + "\n*/"; + output += "\n//# sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map); } if (OUTPUT_FILE) { |