aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSergej Tatarincev <st@bekitzur.com>2012-10-19 12:35:19 +0300
committerSergej Tatarincev <st@bekitzur.com>2012-10-19 12:35:19 +0300
commit11dffe950ed5beb1bbf224a594cf0fae7dc11f9a (patch)
tree869890727e449a6571e4f63747f4cb1e677f38f9 /README.md
parent6f45928a73009b6b1aee8c1886f08ff5b83e6cb1 (diff)
downloadtracifyjs-11dffe950ed5beb1bbf224a594cf0fae7dc11f9a.tar.gz
tracifyjs-11dffe950ed5beb1bbf224a594cf0fae7dc11f9a.zip
Add sourceRoot option to minify
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index f519c119..4bf29b20 100644
--- a/README.md
+++ b/README.md
@@ -343,6 +343,14 @@ Note that the source map is not saved in a file, it's just returned in
`result.map`. The value passed for `outSourceMap` is only used to set the
`file` attribute in the source map (see [the spec][sm-spec]).
+You can also specify sourceRoot property to be included in source map:
+
+ var result = UglifyJS.minify([ "file1.js", "file2.js", "file3.js" ], {
+ outSourceMap: "out.js.map",
+ sourceRoot: "http://example.com/src"
+ });
+
+
If you're compressing compiled JavaScript and have a source map for it, you
can use the `inSourceMap` argument: