How to run the webpack under the environment of nodejs, so that the webpack can run node under the condition of hot and heavy load, which is convenient for debugging.

  node.js, question

I do the front-end and back-end separation, and the front-end and back-end sit separately. However, under the development environment, my webpack is heavily loaded in World Wide Web Publishing Service, but my nodejs runs on the 3000 port. However, when I debug the front-end and back-end api interfaces, I must request jsonp to cross-domain. Is there any better method to solve this problem? Make it possible to run this on the same port at the same time! First say thank you ~ ~ ~ thank you

The webpack has a webpack-dev-middleware middleware. You can use nodejs to directly use this middleware.
http://webpack.github.io/docs/webpack-dev-middleware.html
Jsabi with webpack
http://webpack.github.io/docs/node.js-api.html