mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
Add information about customize-cra installation
Complementation of PR #14385
This commit is contained in:
parent
44005529db
commit
ec4fcd2281
@ -101,10 +101,10 @@ For instance, we actually import all styles of components in the project which m
|
||||
|
||||
Now we need to customize the default webpack config. We can achieve that by using [react-app-rewired](https://github.com/timarney/react-app-rewired) which is one of create-react-app's custom config solutions.
|
||||
|
||||
Import react-app-rewired and modify the `scripts` field in package.json.
|
||||
Import react-app-rewired and modify the `scripts` field in package.json. Due to new `react-app-rewired@2.x` versions, you have to install customize-cra along with react-app-rewired.
|
||||
|
||||
```
|
||||
$ yarn add react-app-rewired
|
||||
$ yarn add react-app-rewired customize-cra
|
||||
```
|
||||
|
||||
```diff
|
||||
|
Loading…
Reference in New Issue
Block a user