create-react-app: How do I “npm start” with a specific browser?

后端 未结 11 1951
一个人的身影
一个人的身影 2021-01-31 07:11

npm start

starts the react server on the default browser, which is Firefox for me. I like Firefox for browsing but prefer Chrome in web deve

11条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 07:58

    Add script to your package.json file

    "devserver": "live-server --browser=Chrome"
    

提交回复
热议问题