Browse Source

update doc, close #8272

pull/8280/head
afc163 7 years ago
parent
commit
669b3c5b2e
  1. 4
      CHANGELOG.en-US.md
  2. 4
      CHANGELOG.zh-CN.md
  3. 2
      README.md
  4. 2
      docs/react/introduce.en-US.md
  5. 2
      docs/react/introduce.zh-CN.md

4
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" }]]
}
```

4
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" }]]
}
```

2
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
]
}
```

2
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
]
}
```

2
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 文件
]
}
```

Loading…
Cancel
Save