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

Very long build times #3

Open
jschlieber opened this issue May 9, 2017 · 1 comment
Open

Very long build times #3

jschlieber opened this issue May 9, 2017 · 1 comment
Labels

Comments

@jschlieber
Copy link

In one of my projects, which is medium sized in my judgement, a production build with default settings takes at least 15 minutes (It took between 1 and 2 minutes with the standard-minifier-js). The build process seems to be stuck at Minifying app code... as I can only forcefully kill the process in this state, but after waiting for a long time it eventually finishes.

Anybody else experiencing such long build times? Any ideas what could be the cause of such a lengthy build process and how to improve it?

@PEM--
Copy link
Member

PEM-- commented May 9, 2017

The number of passes in the default is set to 2: https://github.com/ssrwpo/uglifyjs2/blob/master/src/uglifyjs2/plugin.js#L40

You could check if with a single pass, you achieve the same minification, hence, that would at least divide the length by 2.

@PEM-- PEM-- added the question label May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants