Is there currently a way to access webpack\'s progress while using the node.js API? I\'m familiar with the --progress flag using the CLI.
The Webpack CLI uses the ProgressPlugin to log the progress of a compilation.
var ProgressPlugin = require('webpack/lib/ProgressPlugin');
var compiler = webpack(config);
compiler.apply(new ProgressPlugin(function(percentage, msg) {
console.log((percentage * 100) + '%', msg);
}));
compiler.run(function(err, stats) {
// ...
});
Here is a link to the Compiler documentation and the ProgressPlugin documentation.