-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Add more properties for UglifyJsPlugin #3270
Comments
There is currently no built in support for altering the webpack config. This is something that has been discussed and will be looked closed at after v1.0. The "easiest" way to do it right now is to checkout angular-cli and link it up to npm and your project. Then you can simply edit |
Ok, but why angular-cli for production environment don't use more properties like remove comments, or others that help to improve the production bundle? |
I myself added postcss-discard-comments which saved lots of kilobytes. See #2593 There is an open issue about JS-comments not being removed in #2386. This has to be advised by the legal team before being applied. |
Just tried removing comments in the JS aswell. Made my main.bundle.js.gz go from 303kb to 298kb. Not that much of a difference. |
Closing as there are other issues that cover this as @grizzm0 mentioned. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Hi,
Is there any way to set up more properties for webpack.optimize.UglifyJsPlugin?
For example I want use more properties for the production bundle, like remove comments, reduce vars, etc.
Thx.
The text was updated successfully, but these errors were encountered: