在我们使用create-react-app project之后在package.json的scripts中

"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}

react-scripts是create-react-app中的一个核心包一些脚本和工具的默认配置都集成在里面,

npm run eject 会复制所有依赖文件和相应的依赖(webpack、babel等)到你的项目。是个单向的操作,一旦 eject ,npm run eject的操作是不可逆的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-09-06
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案