mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
doc webpackrc (#9651)
This commit is contained in:
parent
f402e87fe0
commit
d3c57f09ea
@ -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": {
|
||||
|
@ -24,7 +24,7 @@ antd 的样式使用了 [Less](http://lesscss.org/) 作为开发语言,并定
|
||||
|
||||
### 1) theme 属性(推荐)
|
||||
|
||||
配置在 `package.json` 或 `.roadhogrc` 下的 `theme` 字段。theme 可以为配置为一个对象或文件路径。
|
||||
配置在 `package.json` 或 `.webpackrc` 下的 `theme` 字段。theme 可以为配置为一个对象或文件路径。
|
||||
|
||||
```js
|
||||
"theme": {
|
||||
|
@ -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
|
||||
|
||||
|
@ -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#配置)
|
||||
|
||||
## 定义路由
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user