简体   繁体   中英

How run react-app on node server

Webpack is manually set without create-react-app.

Can it be used with a webpack dev server?

Which is the easiest way, without express?

You can use npm package "serve" on your static build: In terminal:

npm install -g serve // Global npm install
serve [options] <path> // Where option is optional and path is the folder you want to serve

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM