Perhaps create a webpack plugin that reports progress: https://webpack.js.org/concepts/plugins/ Progress could be sent over a websocket.