Skip to content
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

Improve build speed with uglify-webpack option. #941

Merged
merged 1 commit into from
Oct 16, 2017
Merged

Improve build speed with uglify-webpack option. #941

merged 1 commit into from
Oct 16, 2017

Conversation

Gingernaut
Copy link
Contributor

uglifyjs-webpack has a parallel option that allows uglify to run in parallel to the main build. This results in a speed increase in the build process.

Time difference with npm run build on a fresh template with all options enabled:
Without change: 4896ms
With change: 4474ms
8.6% increase in speed.

On a project I am currently working on:
Without: 13262ms
WIth: 12576ms
5.1% increase in speed.

Others could have higher speed increases with a newer/different CPU.
CPU used: Intel i7-4712HQ

https://github.com/webpack-contrib/uglifyjs-webpack-plugin

@LinusBorg LinusBorg added this to the 1.1.0 milestone Oct 3, 2017
@LinusBorg LinusBorg modified the milestones: 1.1.0, 1.2.0 Oct 7, 2017
@LinusBorg LinusBorg merged commit 937ebe6 into vuejs-templates:develop Oct 16, 2017
@LinusBorg
Copy link
Contributor

Thanks!

yugasun pushed a commit to yugasun/webpack that referenced this pull request Nov 2, 2017
frandiox pushed a commit to OnsenUI/vue-cordova-webpack that referenced this pull request Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants