mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
update doc, close #8272
This commit is contained in:
parent
499b81f79d
commit
669b3c5b2e
@ -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" }]]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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" }]]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -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
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -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 文件
|
||||
]
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user