Skip to content
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

Used to show line number of broken JS, doesn't anymore #54

Closed
ultimatedelman opened this issue Jul 23, 2013 · 1 comment
Closed

Used to show line number of broken JS, doesn't anymore #54

ultimatedelman opened this issue Jul 23, 2013 · 1 comment

Comments

@ultimatedelman
Copy link

Not sure what happened here. I've updated to the latest gem and the errors still get displayed, but now without the line number, making it much harder to debug. Is this an option I can turn back on? I've tried to use :preserve_line => true but that tells me it's an invalid option. Futzing with this to get it to say it's no longer an invalid option doesn't produce any result.

@abarnet
Copy link

abarnet commented Aug 23, 2013

It looks like the arguments have been re-organized. Try Uglifier.new(:output => {:preserve_line => true}) instead of Uglifier.new(:preserve_line => true).

Also, I was using Uglifier in my dev environment, so I had to make sure all my tmp cache assets were deleted first so the dev server would recompile everything.

@lautis lautis closed this as completed Sep 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants