Skip to content

Allow removing comments (JSDoc, inline) without minifying #698

Description

@lppedd

Currently you either minify, or you don't, there is no middle ground or customization available.
In my case I'd like to not minify, but to simply avoid outputting comments as they are simply unnecessary and take quite the space (think about giant license headers).

This should be doable with a minification configuration like (edit: just tried, and I can't come up with a config that works!):

{
    compress: false,
    mangle: false,
    format: {
        comments: false
    }
}

Possible CLI option: --no-comments

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions