-
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
How generate minified file with source map? #1905
Comments
Yeah, that's a bug in
It works in
|
So the command line for that would be: $ uglifyjs main.js -cmo main.min.js --source-map url=main.min.js.map |
@alexlamsl That's not very intuitive using |
@alexlamsl The more I think about it, it's still a This
Yet it does not add the source map comment to the end of |
@alexlamsl Maybe you save CLI options from 2.x version for more compatibility |
@alexlamsl It's your call. But it could be better documented in any case. |
@kzc I haven't made up my mind yet - just making sure we are on the same page about The rationale behind restructuring the whole There is also While there is no way to even guess a source map file name within |
Okay, I did not know the backstory about the source map configuration travails. A few lines of documentation with examples for typical usage scenarios is probably sufficient. |
- clarify options on `--source-map` - fix `minify()` examples fixes mishoo#1905
- clarify options on `--source-map` - fix `minify()` examples fixes #1905
- instruct UglifyJS to add a `//# sourceMappingURL=vaadin-router.umd.min.js.map` comment to the end of the minified UMD bundle (see mishoo/UglifyJS#1905 for details) - specify the input source map as described in https://github.com/mishoo/UglifyJS2#composed-source-map
* fix the missing source maps for the minified UMD bundle - instruct UglifyJS to add a `//# sourceMappingURL=vaadin-router.umd.min.js.map` comment to the end of the minified UMD bundle (see mishoo/UglifyJS#1905 for details) - specify the input source map as described in https://github.com/mishoo/UglifyJS2#composed-source-map * Merge branch 'master' into fix/minified-umd-bundle-source-map
Bug report or feature request?
Bug
ES5 or ES6+ input?
ES5
Uglify version (uglifyjs -V)
[email protected]
Hi!
I use this command for generate minified file with source map:
uglifyjs main.js -o main.min.js --source-map base="F:\UArush\web\angular2-test\test\test"
In main.min.js.map
source
variable have"..\\main.js"
value but need havemain.js
and inmain.min.js
didn't add//# sourceMappingURL=/main.min.js.map
Thanks!
The text was updated successfully, but these errors were encountered: