doc webpackrc (#9651)

This commit is contained in:
拷钉 2018-03-13 13:42:12 +08:00 committed by 偏右
parent f402e87fe0
commit d3c57f09ea
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ You can use this [example](https://github.com/ant-design/antd-init/tree/master/e
### 1) Using `theme` property (recommended way)
Specify the `theme` property in the `package.json` or `.roadhogrc` file, whose value can be either an object or the path to a JS file that contains the custom values of specific variables:
Specify the `theme` property in the `package.json` or `.webpackrc` file, whose value can be either an object or the path to a JS file that contains the custom values of specific variables:
- example of directly specifying the custom values as an object:
```js
"theme": {

View File

@ -24,7 +24,7 @@ antd 的样式使用了 [Less](http://lesscss.org/) 作为开发语言,并定
### 1) theme 属性(推荐)
配置在 `package.json``.roadhogrc` 下的 `theme` 字段。theme 可以为配置为一个对象或文件路径。
配置在 `package.json``.webpackrc` 下的 `theme` 字段。theme 可以为配置为一个对象或文件路径。
```js
"theme": {

View File

@ -69,7 +69,7 @@ Edit `.webpackrc` to integrate `babel-plugin-import`.
+ ],
```
> Notice: dva-cli's build and dev is based on roadhog, view [roadhog#Configuration](https://github.com/sorrycc/roadhog/blob/master/README_en-us.md#configuration) for more `.roadhogrc` Configuration.
> Notice: dva-cli's build and dev is based on roadhog, view [roadhog#Configuration](https://github.com/sorrycc/roadhog/blob/master/README_en-us.md#configuration) for more `.webpackrc` Configuration.
## Define Router

View File

@ -71,7 +71,7 @@ $ npm install antd babel-plugin-import --save
+ ],
```
> 注dva-cli 基于 roadhog 实现 build 和 dev更多 `.roadhogrc` 的配置详见 [roadhog#配置](https://github.com/sorrycc/roadhog#配置)
> 注dva-cli 基于 roadhog 实现 build 和 dev更多 `.webpackrc` 的配置详见 [roadhog#配置](https://github.com/sorrycc/roadhog#配置)
## 定义路由