trivago / parallel-webpack

Builds multi-config webpack projects in parallel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On complete hook

aramk opened this issue · comments

Is there any way to determine when building has been completed? I'm launching the app using OpenBrowserPlugin but I don't know when it's completed all parallel builds.

I tried using the Node.js API but the run() method callback and promise are only fired when watch: false.

A Promise based API can't support watch mode. We could potentially add support for it for the callback style approach.
Would you like to try implementing this yourself? Would be very happy about a PR.

#55 Added this functionality. In watch mode the callback is now fired once all configurations have been compiled once.