# react-env **Repository Path**: molan777/react-env ## Basic Information - **Project Name**: react-env - **Description**: react项目环境-yarn搭建,包括antd - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-09 - **Last Updated**: 2024-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 这个项目是使用 Create React App (https://github.com/facebook/create-react-app) 创建的。 ## 可用的脚本 在项目目录中,你可以运行以下命令: ### npm start 以开发模式运行应用程序。 在浏览器中打开 http://localhost:3000 查看应用程序。 当进行更改时,页面会重新加载。 你还可以在控制台中看到任何 lint 错误。 ### npm test 以交互式的观察模式启动测试运行器。 有关更多信息,请参阅有关 运行测试 (https://facebook.github.io/create-react-app/docs/running-tests) 的部分。 ### npm run build 将应用程序构建为用于生产的版本,并将其优化到 build 文件夹中。 它会以生产模式正确捆绑 React,并优化构建以获得最佳性能。 构建会进行缩小,并且文件名包含哈希值。 你的应用程序已准备好部署! 有关更多信息,请参阅有关 部署 (https://facebook.github.io/create-react-app/docs/deployment) 的部分。 ### npm run eject 注意:这是一个单向操作。一旦你 eject,就无法回退! 如果你对构建工具和配置选择不满意,可以随时进行 eject。此命令将从项目中删除单个构建依赖关系。 而是,它将复制所有配置文件和传递依赖项(webpack、Babel、ESLint 等)直接复制到项目中,以便你完全控制它们。除了 eject 之外的所有命令仍然有效,但它们将指向复制的脚本,以便你可以进行调整。此时你就是自己负责了。 你不必使用 eject。精选的功能集适用于小型和中型部署,你不必在准备好时感觉有义务使用此功能。但是我们理解,如果不能在准备好时自定义它,那么这个工具将没有用处。 ## 了解更多 你可以在 Create React App 文档 (https://facebook.github.io/create-react-app/docs/getting-started) 中了解更多信息。 要学习 React,请查阅 React 文档 (https://reactjs.org/)。 ### 代码拆分 此部分已移至:https://facebook.github.io/create-react-app/docs/code-splitting ### 分析打包大小 此部分已移至:https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size ### 创建渐进式 Web 应用程序 此部分已移至:https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app ### 高级配置 此部分已移至:https://facebook.github.io/create-react-app/docs/advanced-configuration ### 部署 此部分已移至:https://facebook.github.io/create-react-app/docs/deployment ### npm run build 构建失败 此部分已移至:https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify