mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
docs: add remove desc (#39426)
This commit is contained in:
parent
614389ed70
commit
1666eb2721
@ -207,6 +207,15 @@ const v4Token = convertLegacyToken(mapToken);
|
||||
}
|
||||
```
|
||||
|
||||
Ant then remove antd less reference in your less file:
|
||||
|
||||
```diff
|
||||
// Your less file
|
||||
-- @import (reference) '~antd/es/style/themes/index';
|
||||
or
|
||||
-- @import '~antd/es/style/some-other-less-file-ref';
|
||||
```
|
||||
|
||||
### Remove babel-plugin-import
|
||||
|
||||
Remove `babel-plugin-import` from package.json and modify `.babelrc`:
|
||||
|
@ -199,6 +199,15 @@ const v4Token = convertLegacyToken(mapToken);
|
||||
}
|
||||
```
|
||||
|
||||
同时移除对 antd less 文件的直接引用:
|
||||
|
||||
```diff
|
||||
// Your less file
|
||||
-- @import (reference) '~antd/es/style/themes/index';
|
||||
or
|
||||
-- @import '~antd/es/style/some-other-less-file-ref';
|
||||
```
|
||||
|
||||
### 移除 babel-plugin-import
|
||||
|
||||
从 package.json 中移除 `babel-plugin-import`,并从 `.babelrc` 移除该插件:
|
||||
|
Loading…
Reference in New Issue
Block a user