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.
Jsabi with webpack