What is the expected behavior?
I’d expect the webpack bundles to be as small as possible in the production mode. Currently, however, the comments don’t get removed from the bundles.
What is motivation or use case for adding/changing the behavior?
The very idea of a “production” mode is that the bundles should be as small as possible and load as fast as possible. Removing the comments decreases the bundle size incredibly.
How should this be implemented in your opinion?
uglifyOptions.output.comments should be set to
false by default in the production mode.
Are you willing to work on this yourself?
No, I’m totally new to webpack so I don’t want to break something