How to upgrade a React project built with create-react-app to the next create-react-app version?

后端 未结 1 407
悲&欢浪女
悲&欢浪女 2020-12-30 23:22

I have a React project built with create-react-app 1.5. I would like to get the features of create-react-app 2.0 for my React project.

Spec

相关标签:
1条回答
  • 2020-12-30 23:54

    Basically, to upgrade a create-react-app project, all you need to do is update the react-scripts module to the latest version and update your app to be compatible with any breaking changes in react-scripts.

    Run yarn upgrade --latest react-scripts, rebuild your app, and everything should more-or-less work, barring any breaking changes.

    0 讨论(0)
提交回复
热议问题