updated sourceMapUrl docs
This commit is contained in:
parent
0ae7c36a39
commit
b27e9655ad
11
README.md
11
README.md
|
|
@ -663,6 +663,17 @@ var result = UglifyJS.minify("compiled.js", {
|
||||||
The `inSourceMap` is only used if you also request `outSourceMap` (it makes
|
The `inSourceMap` is only used if you also request `outSourceMap` (it makes
|
||||||
no sense otherwise).
|
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:
|
Other options:
|
||||||
|
|
||||||
- `warnings` (default `false`) — pass `true` to display compressor warnings.
|
- `warnings` (default `false`) — pass `true` to display compressor warnings.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user