Skip to content

Only comments from the first files are preserved #543

Open
@tigrr

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions