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

Is there anyway to hint the completion size? #11

Open
bnolan opened this issue Sep 16, 2016 · 1 comment
Open

Is there anyway to hint the completion size? #11

bnolan opened this issue Sep 16, 2016 · 1 comment

Comments

@bnolan
Copy link

bnolan commented Sep 16, 2016

My progress bar goes forwards and backwards (as more modules are discovered i assume). Is there anyway to give the progressbar a hint as to how many modules are in the build?

@yofreke
Copy link

yofreke commented Sep 24, 2016

That question is better directed at webpack itself. There is no good way to estimate the number of modules, since you don't know until you start traversing the tree of imports. The only way that you could get close to the desired effect would be to save the total module count from last build, and use that as your estimate. This would of course be wrong as soon as you change an import.

It would also requiring a more in depth plugin, instead of just using the Internal ProgressPlugin, since the ProgressPlugin only gives you a percentage (and you would need module counts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants