Feature request
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
@Maximaximum Expected behavoiour, webpack don’t remove legal comment (copyright, licenses and etc), we should respect other developers. You can configure uglify plugin in
minimizer
option and setcomments: false
. Thanks!All legal comments not removed. Some package can have license what require has license, also it is disrespectful to the package authors.