aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 672c2f3b..ff3ba7bd 100644
--- a/README.md
+++ b/README.md
@@ -631,9 +631,10 @@ be appended to code.
You can also specify sourceRoot property to be included in source map:
```javascript
var result = UglifyJS.minify({"file1.js": "var a = function() {};"}, {
- sourceMap: {
+ sourceMap: {
root: "http://example.com/src",
url: "out.js.map"
+ }
});
```
@@ -641,9 +642,9 @@ If you're compressing compiled JavaScript and have a source map for it, you
can use `sourceMap.content`:
```javascript
var result = UglifyJS.minify({"compiled.js": "compiled code"}, {
- sourceMap: {
+ sourceMap: {
content: "content from compiled.js.map",
- url: "minified.js.map"
+ url: "minified.js.map"
}
});
// same as before, it returns `code` and `map`