0.1.2 • Published 3 years ago

vite-plugin-antd-import v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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()]
}