From: Matt Robenolt Date: Mon, 4 Feb 2013 00:01:01 +0000 (-0800) Subject: Wraps sourceMappingURL in a multiline comment. Fixes #108 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a9af2c9e62b62572cf31c8db14ebd0e71ccbeaaa;p=UglifyJS.git Wraps sourceMappingURL in a multiline comment. Fixes #108 --- diff --git a/bin/uglifyjs b/bin/uglifyjs index 0feb8370..dc9a4512 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -279,7 +279,7 @@ output = output.get(); if (SOURCE_MAP) { fs.writeFileSync(ARGS.source_map, SOURCE_MAP, "utf8"); - output += "\n//@ sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map); + output += "\n/*\n//@ sourceMappingURL=" + (ARGS.source_map_url || ARGS.source_map) + "\n*/"; } if (OUTPUT_FILE) {