[Pkg-javascript-commits] [uglifyjs] 18/491: Fix API reference examples (#1834)

Jonas Smedegaard dr at jones.dk
Wed Feb 14 19:51:18 UTC 2018


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.

commit 6f954aa3d0a505791753c6cb6273e98d84895915
Author: Roman Dvornov <rdvornov at gmail.com>
Date:   Thu Apr 20 21:23:41 2017 +0300

    Fix API reference examples (#1834)
---
 README.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 672c2f3..ff3ba7b 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`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list