create-react-app npm run build command

前端 未结 9 783
春和景丽
春和景丽 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:06

    After building your application through create-react-app create-react-app

    Run command npm run build After that run command npm install -g serve & finally serve -s build

    More detailed information can be found from here create-react-app-deployment

提交回复
热议问题