progress-bar-webpack-plugin
progress-bar-webpack-plugin copied to clipboard
Is there anyway to hint the completion size?
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?
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).