react-app-rewired
时间: 2023-09-22 13:05:53 浏览: 206
React-app-rewired是一个用于create-react-app构建的项目中添加Webpack配置的工具。它可以与customize-cra配合使用。首先,你需要通过运行以下命令来安装react-app-rewired和customize-cra:yarn add customize-cra react-app-rewired --dev。然后,你需要更改package.json文件中的scripts命令,将start、build和test命令改为react-app-rewired start、react-app-rewired build和react-app-rewired test。这样,你就可以使用react-app-rewired来自定义Webpack配置了。React-app-rewired的使用可以帮助我们更好地实现对Webpack相关配置的自定义。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *2* [React - react-app-rewired](https://blog.csdn.net/sinat_33184880/article/details/104291527)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [关于 react-app-rewired的使用【前端】](https://blog.csdn.net/qq_45402495/article/details/122740469)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文