From b27e9655adf0b6acd30adfc04bd6efeea5542cf4 Mon Sep 17 00:00:00 2001 From: qyoz Date: Mon, 11 Jul 2016 12:54:19 +0300 Subject: [PATCH] updated sourceMapUrl docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 3245d404..0d6e619a 100644 --- a/README.md +++ b/README.md @@ -663,6 +663,17 @@ var result = UglifyJS.minify("compiled.js", { The `inSourceMap` is only used if you also request `outSourceMap` (it makes no sense otherwise). +To set the source map url, use the `sourceMapUrl` option. +If you're using the X-SourceMap header instead, you can just set the `sourceMapUrl` option to false. +Defaults to outSourceMap: + +```javascript +var result = UglifyJS.minify([ "file1.js" ], { + outSourceMap: "out.js.map", + sourceMapUrl: "localhost/out.js.map" +}); +``` + Other options: - `warnings` (default `false`) — pass `true` to display compressor warnings.