Fix API reference examples

This commit is contained in:
Roman Dvornov 2017-04-20 17:29:23 +03:00 committed by GitHub
parent f05d4f7af3
commit 9ba7fe6baa

View File

@ -594,7 +594,7 @@ There is a single toplevel function, `minify(files, options)`, which will
performs all the steps in a configurable manner. performs all the steps in a configurable manner.
Example: Example:
```javascript ```javascript
var result = UglifyJS.minify("var b = function() {};"); var result = UglifyJS.minify("var b = function() {};", { fromString: true });
console.log(result.code); // minified output console.log(result.code); // minified output
``` ```
@ -634,6 +634,7 @@ var result = UglifyJS.minify({"file1.js": "var a = function() {};"}, {
sourceMap: { sourceMap: {
root: "http://example.com/src", root: "http://example.com/src",
url: "out.js.map" url: "out.js.map"
}
}); });
``` ```