ericclemmons / start-server-webpack-plugin

Automatically start your server once Webpack's build completes.
MIT License
158 stars 26 forks source link

Multicompiler support #32

Open NickCis opened 6 years ago

NickCis commented 6 years ago

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.