docs: add remove desc (#39426)

This commit is contained in:
二货爱吃白萝卜 2022-12-09 11:41:50 +08:00 committed by GitHub
parent 614389ed70
commit 1666eb2721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -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
Remove `babel-plugin-import` from package.json and modify `.babelrc`: Remove `babel-plugin-import` from package.json and modify `.babelrc`:

View File

@ -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 ### 移除 babel-plugin-import
从 package.json 中移除 `babel-plugin-import`,并从 `.babelrc` 移除该插件: 从 package.json 中移除 `babel-plugin-import`,并从 `.babelrc` 移除该插件: