diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 4f9703ec57..be0b0e6f78 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -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" }]] } ``` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 7fe476e808..bff69f7c3a 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -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" }]] } ``` diff --git a/README.md b/README.md index 55232d868c..fcf5ff8119 100644 --- a/README.md +++ b/README.md @@ -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 ] } ``` diff --git a/docs/react/introduce.en-US.md b/docs/react/introduce.en-US.md index ecdf11434d..dc07503ae9 100644 --- a/docs/react/introduce.en-US.md +++ b/docs/react/introduce.en-US.md @@ -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 ] } ``` diff --git a/docs/react/introduce.zh-CN.md b/docs/react/introduce.zh-CN.md index b7a963d8f0..a333305e44 100644 --- a/docs/react/introduce.zh-CN.md +++ b/docs/react/introduce.zh-CN.md @@ -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 文件 ] } ```