mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
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:
parent
009f2c8f33
commit
cbb46a86b3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user