@ -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
@ -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'
@ -93,7 +93,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
["import", { libraryName: "antd", style: "css" }] // `style: true` 会加载 less 文件
["import", { "libraryName": "antd", "style": "css" }] // `style: true` 会加载 less 文件