create-react-app npm run build command

前端 未结 9 760
春和景丽
春和景丽 2020-12-15 18:03

I have a built a small React application with create-react-app, and it runs fine from the local server after running npm start. OK so far.

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 18:26

    1. cd to your build folder,
    2. python -m SimpleHTTPServer 8080 to start a server on port 8080,
    3. go to address localhost:8080/index.html in your browser.

提交回复
热议问题