If the same plugin's instance is passed to different webpack compilations, the bundled script will be run only when all compilations have finished.
Some people (included me) use the multicompiler feature in order to compile a server and client bundle. The idea is to run the server only when both compilations have finished.
The idea of this PR is to support webpack's multi compiler feature.
If the same plugin's instance is passed to different webpack compilations, the bundled script will be run only when all compilations have finished.
Some people (included me) use the multicompiler feature in order to compile a server and client bundle. The idea is to run the server only when both compilations have finished.