progress-bar-webpack-plugin icon indicating copy to clipboard operation
progress-bar-webpack-plugin copied to clipboard

Is there anyway to hint the completion size?

Open bnolan opened this issue 8 years ago • 1 comments

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?

bnolan avatar Sep 16 '16 02:09 bnolan

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).

yofreke avatar Sep 24 '16 00:09 yofreke