Update README.md - sourceMappingURL directive note

Moves this README note to underneath the 'url' rather than 'root' option.
This commit is contained in:
Tim Malone 2017-10-11 11:39:35 +11:00 committed by GitHub
parent b810e2f8da
commit d2d83ee8d6

View File

@ -153,10 +153,10 @@ Additional options:
- `--source-map "filename='<NAME>'"` to specify the name of the source map. - `--source-map "filename='<NAME>'"` to specify the name of the source map.
- `--source-map "root='<URL>'"` to pass the URL where the original files can be found. - `--source-map "root='<URL>'"` to pass the URL where the original files can be found.
Otherwise UglifyJS assumes HTTP `X-SourceMap` is being used and will omit the
`//# sourceMappingURL=` directive.
- `--source-map "url='<URL>'"` to specify the URL where the source map can be found. - `--source-map "url='<URL>'"` to specify the URL where the source map can be found.
Otherwise UglifyJS assumes HTTP `X-SourceMap` is being used and will omit the
`//# sourceMappingURL=` directive.
For example: For example: