docs: fix less-loader@6 customize-cra (#23821)

* docs: fix less-loader@6 customize-cra

* Update use-with-create-react-app.en-US.md
This commit is contained in:
Tom Xu 2020-05-02 22:29:01 +08:00 committed by GitHub
parent 009f2c8f33
commit cbb46a86b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -96,8 +96,10 @@ Now we need to customize the default webpack config. We can achieve that by usin
Import react-app-rewired and modify the `scripts` field in package.json. Due to new [react-app-rewired@2.x](https://github.com/timarney/react-app-rewired#alternatives) issue, you shall need [customize-cra](https://github.com/arackaf/customize-cra) along with react-app-rewired.
```
```bash
$ yarn add react-app-rewired customize-cra
# use less-loader@6.0.0
$ yarn add react-app-rewired customize-cra@next
```
```diff

View File

@ -96,8 +96,10 @@ export default 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)。
```
```bash
$ yarn add react-app-rewired customize-cra
# 使用less-loader@6.0.0
$ yarn add react-app-rewired customize-cra@next
```
```diff