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

Stripping comments regardless of the preserveComments setting #279

Closed
IanCaunce opened this issue Dec 3, 2014 · 2 comments
Closed

Stripping comments regardless of the preserveComments setting #279

IanCaunce opened this issue Dec 3, 2014 · 2 comments

Comments

@IanCaunce
Copy link

Regardless of the preserveComments setting if the comment is followed by a semi colon, it will be stripped during the minification process.

Example:
/*! Comment */
;(function($){

})(jQuery)

@jamesplease
Copy link
Member

This is likely an issue with uglifyJs2, and not this library, which is just a wrapper. Have you tried compiling the source using uglify's command line tool?

If the problem still exists, then you should file this on their issue tracker.

@XhmikosR
Copy link
Member

Duplicate of #273

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