vite-plugin-antd-import
v0.1.2
Published
Automatically import the corresponding style file when importing components.
Downloads
47
Readme
@vitejs/plugin-antd-import
Automatically import the corresponding style file when importing components.
How to use
Install:
# npm
npm install -D @vitejs/plugin-antd-import
# yarn
yarn add -D @vitejs/plugin-antd-import
Usage:
import antdImportPlugin from '@vitejs/plugin-antd-import';
// vite.config.ts
export default {
plugins: [antdImportPlugin()]
}