Browse Source
Update use-with-create-react-app.zh-CN.md
修改文字
pull/16040/head
tom
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/react/use-with-create-react-app.zh-CN.md
|
|
@ -92,7 +92,7 @@ export default App; |
|
|
|
|
|
|
|
此时我们需要对 create-react-app 的默认配置进行自定义,这里我们使用 [react-app-rewired](https://github.com/timarney/react-app-rewired) (一个对 create-react-app 进行自定义配置的社区解决方案)。 |
|
|
|
|
|
|
|
引入 react-app-rewired 并修改 package.json 里的启动配置。由于新的 [react-app-rewired@2.x](https://github.com/timarney/react-app-rewired#alternatives) 版本的关系,你需要还需要安装 [customize-cra](https://github.com/arackaf/customize-cra)。 |
|
|
|
引入 react-app-rewired 并修改 package.json 里的启动配置。由于新的 [react-app-rewired@2.x](https://github.com/timarney/react-app-rewired#alternatives) 版本的关系,你还需要安装 [customize-cra](https://github.com/arackaf/customize-cra)。 |
|
|
|
|
|
|
|
``` |
|
|
|
$ yarn add react-app-rewired customize-cra |
|
|
|