Answer the question
In order to leave comments, you need to log in
How to run two separate files on different ports?
There are two entry points.
Answer the question
In order to leave comments, you need to log in
webpack.config.js:
const PORT = process.env.npm_lifecycle_event === 'start-main' ? 8080 : 3000;
// дальше просто выдавайте разные конфиги webpack
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question