update doc, close #8272

This commit is contained in:
afc163 2017-11-22 10:50:39 +08:00
parent 499b81f79d
commit 669b3c5b2e
5 changed files with 7 additions and 7 deletions

View File

@ -1372,8 +1372,8 @@ The following change will throw some warnings in the console and it will still w
```diff
{
- "plugins": [["antd", { style: "css" }]]
+ "plugins": [["import", { libraryName: "antd", style: "css" }]]
- "plugins": [["antd", { "style": "css" }]]
+ "plugins": [["import", { "libraryName": "antd", "style": "css" }]]
}
```

View File

@ -1387,8 +1387,8 @@ timeline: true
```diff
{
- "plugins": [["antd", { style: "css" }]]
+ "plugins": [["import", { libraryName: "antd", style: "css" }]]
- "plugins": [["antd", { "style": "css" }]]
+ "plugins": [["import", { "libraryName": "antd", "style": "css" }]]
}
```

View File

@ -72,7 +72,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` for less
["import", { "libraryName": "antd", "style": "css" }] // `style: true` for less
]
}
```

View File

@ -90,7 +90,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` for less
["import", { "libraryName": "antd", "style": "css" }] // `style: true` for less
]
}
```

View File

@ -93,7 +93,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` 会加载 less 文件
["import", { "libraryName": "antd", "style": "css" }] // `style: true` 会加载 less 文件
]
}
```