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.
Specifically I would like to use this: https://github.com/facebook/create-react-app/pull/3909
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.
Create React App is divided into two packages:
create-react-app is a global command-line utility that you use to create new projects. react-scripts is a development dependency in the generated projects (including this one). When you run npx create-react-app my-app it automatically installs the latest version of Create React App.
If you've previously installed create-react-app globally via npm install -g create-react-app , please visit Getting Started to learn about current installation steps.
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.