Skip to content

Commit

Permalink
Add information about customize-cra installation
Browse files Browse the repository at this point in the history
Complementation of PR ant-design#14385
  • Loading branch information
anjoshigor authored and afc163 committed Jan 17, 2019
1 parent 4400552 commit ec4fcd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/react/use-with-create-react-app.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec4fcd2

Please sign in to comment.