How to use webpack-dev server with multiple webpack configurations?

Imagine that I have a project like this:

/moduleA/src...
/moduleB/src...
/mainApp/src...

I have a separate webpack.config for each module and main application. Modules are libraries, and the main application imports these libraries.

Is it possible to configure webpack-dev-server to serve all three?

What I want to avoid is to stop the dev server, rebuild moduleA and moduleB, and restart the dev server every time I want to make changes to moduleA or B.

+4
source share

Source: https://habr.com/ru/post/1686470/


All Articles