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

How to keep comments in object? #2998

Closed
orifake opened this issue Mar 13, 2018 · 1 comment · Fixed by #2999
Closed

How to keep comments in object? #2998

orifake opened this issue Mar 13, 2018 · 1 comment · Fixed by #2999

Comments

@orifake
Copy link

orifake commented Mar 13, 2018

I use the comments as placeholder like this -- comments in object body.

config = { /**COMMENTS**/ };

It will be compressed and I didn't find the right option to keep comments in such situation.

@alexlamsl
Copy link
Collaborator

The official way is to use -b comments=all to keep comments, however it currently does not handle your example above.

alexlamsl added a commit to alexlamsl/UglifyJS that referenced this issue Mar 13, 2018
alexlamsl added a commit that referenced this issue Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants