Fix babel dir path to modify in create-react-app docs (#4362)

This commit is contained in:
Babajide Fowotade 2016-12-26 04:15:36 +01:00 committed by 偏右
parent 7602faed65
commit 8c0692f5e7
2 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ $ npm run eject
### Import on demand
After eject all config files to antd-demo, we allowed to install [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) and modify `src/webconfig.dev.js` now.
After eject all config files to antd-demo, we allowed to install [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) and modify `config/webpack.config.dev.js` now.
```bash
$ npm install babel-plugin-import --save-dev

View File

@ -108,7 +108,7 @@ $ npm run eject
### 按需加载
现在可以安装 [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 并修改 `src/webconfig.dev.js` 文件。
现在可以安装 [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 并修改 `config/webpack.config.dev.js` 文件。
```bash
$ npm install babel-plugin-import --save-dev
@ -138,7 +138,7 @@ $ npm install babel-plugin-import --save-dev
### 自定义主题
按照 [配置主题](/docs/react/customize-theme) 的要求,自定义主题需要用到 less 变量覆盖功能,因此首先我们需要引入 [less-loader](https://github.com/webpack/less-loader) 来加载 less 样式,同时修改 `src/webconfig.dev.js` 文件。
按照 [配置主题](/docs/react/customize-theme) 的要求,自定义主题需要用到 less 变量覆盖功能,因此首先我们需要引入 [less-loader](https://github.com/webpack/less-loader) 来加载 less 样式,同时修改 `config/webpack.config.dev.js` 文件。
```bash
$ npm install less less-loader --save-dev