update doc

This commit is contained in:
afc163 2016-12-28 15:50:59 +08:00
parent 8852dfd767
commit 967b9a77a9
2 changed files with 2 additions and 4 deletions

View File

@ -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.

View File

@ -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` 命令将所有内建的配置暴露出来。