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

Only comments from the first files are preserved #543

Open
tigrr opened this issue Jul 9, 2019 · 0 comments
Open

Only comments from the first files are preserved #543

tigrr opened this issue Jul 9, 2019 · 0 comments

Comments

@tigrr
Copy link

tigrr commented Jul 9, 2019

When uglifying with the grunt plugin, using option output.comments: 'some' or output.comments: /^!/, only comments from the first file(s) are being preserved. This problem doesn't happen when using uglify-js package.
You can try both in this demo: https://www.dropbox.com/sh/n6mn6szkdgqmsyo/AAD9hydCLM76hGMMkIdCW6Mua?dl=0

Try npm run build to test using uglify-js. This preserves comments containing @license and @preserve from all three files.
Try grunt build to test using grunt plugin. This only preserves comment from the first file (1.js) for me.

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

1 participant