mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Fix babel dir path to modify in create-react-app docs (#4362)
This commit is contained in:
parent
7602faed65
commit
8c0692f5e7
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user