@ackee/react-scripts 中文文档教程
@ackee/react-scripts
这个包包括 创建 React 应用程序。
请参阅其文档:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
How to use
要使用特定版本的 @ackee/react-scripts
创建新项目,请运行以下命令。 不要忘记将 my-app
替换为您的项目名称:
npx @ackee/create-react-app my-app --scripts-version @ackee/react-scripts@1.0.0
Development
阅读,如何有效地开发 react-scripts
包以及如何从最新的本地构建新骨架模板。
要在本地测试反应脚本,请使用
cra-local
CLI 工具。
Upgrading (rebasing) to a new Create React App version
@ackee/react-scripts
This package includes scripts and configuration used by Create React App.
Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
How to use
To create a new project with specific version of @ackee/react-scripts
, run the following command. Don't forget to replace my-app
with your project name:
npx @ackee/create-react-app my-app --scripts-version @ackee/react-scripts@1.0.0
Development
Read, how to efficiently develop the react-scripts
package and how to locally build a new skeleton from the latest template.
To test react-scripts locally, use
cra-local
CLI tool.