trivago / parallel-webpack

Builds multi-config webpack projects in parallel
BSD 3-Clause "New" or "Revised" License
1.48k stars 96 forks source link

Watch usage with server startup #30

Open coreyleelarson opened 7 years ago

coreyleelarson commented 7 years ago

I'm really interested in using this package for bundling our client/server scripts in parallel, however, I am struggling with how to go about orchestrating running the builds, with watch enabled, and starting our server.

ex. Webpack Bundles -> Server Startup -> Watcher Start

Do you have any thoughts on this topic?

pago commented 7 years ago

Sorry, I think I'm missing a bit of context to answer that. Do you intend to do that as part of a gulp file, an express middleware or something similar?

JasonKleban commented 7 years ago

I had success with nodemon-webpack-plugin and all the latest typescript, parallel-webpack, webpack 3. have you tried that? Once that works for webpack --watch it should automatically work for parallel-webpack --watch.