Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 28, 2016
1 parent 8852dfd commit 967b9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/react/use-with-create-react-app.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ We are successd to run antd components now, but in the real world, there are sti
For instance, we actully import all components in the project which will be a serious network perfermance issue.

> You will see a warning in your browser console.

![](https://zos.alipayobjects.com/rmsportal/dBLScZPjiUwunfyQVISX.png)
> ![](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png)

So it is necessary to customize the default webpack config. We can achieve that by using `eject` script command.

Expand Down
3 changes: 1 addition & 2 deletions docs/react/use-with-create-react-app.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ export default App;
我们现在已经把组件成功运行起来了,但是在实际开发过程中还有很多问题,例如上面的例子实际上加载了全部的 antd 组件的代码(对前端性能是个隐患)。

> 你会在控制台看到如下警告。

![](https://zos.alipayobjects.com/rmsportal/dBLScZPjiUwunfyQVISX.png)
> ![](https://zos.alipayobjects.com/rmsportal/vgcHJRVZFmPjAawwVoXK.png)

我们需要对 create-react-app 的默认配置进行自定义。可以使用 `eject` 命令将所有内建的配置暴露出来。

Expand Down

0 comments on commit 967b9a7

Please sign in to comment.