-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI doesn't add sourceMappingURL line to minified output #2284
Comments
You're correct - the command as documented in the README does not work in It's a quoting issue. Please try the following:
README pull request welcome. Edit: changed source map argument to |
@kzc thanks for looking into it. The examples were tested on Command Prompt, so someone will need to test and update |
Dazix
added a commit
to Dazix/UglifyJS2
that referenced
this issue
Aug 29, 2017
alexlamsl
pushed a commit
that referenced
this issue
Aug 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report or feature request?
Bug report
ES5 or ES6+ input?
ES6, but minimal repro shows that it doesn't make a difference.
Uglify version (
uglifyjs -V
)I tried release 3.0.28, the current HEAD of the harmony branch (067d52b), and also went back to the earliest published 3.x version (3.0.2). Same behavior in all three cases.
The
uglifyjs
CLI command executed orminify()
options used.Create two files:
Uglify them using exactly the command specified in the "CLI source map options" section of the docs:
The uglified output doesn't contain a sourceMappingURL line:
I expected it to contain a sourceMappingURL line. Otherwise, the source map isn't loaded by the browser.
To be sure that I wasn't missing something, I also tested with version 2.8.29 and the equivalent uglifyjs command from that version's docs. It does add the sourceMappingURL line correctly:
The text was updated successfully, but these errors were encountered: