/antd-dayjs-vite-plugin

A Vite port of antd-dayjs-webpack-plugin. Day.js vite plugin for Ant Design (antd).

Primary LanguageTypeScriptMIT LicenseMIT

npm npm bundle size

A Vite port of antd-dayjs-webpack-plugin. Day.js vite plugin for Ant Design (antd).

Usage

Install via yarn add antd-dayjs-vite-plugin.

In your vite.confg.ts:

import { antdDayjs } from 'antd-dayjs-vite-plugin';

export default defineConfig({
  plugins: [/**/, antdDayjs()],
  // ...
}

Configuration

All options are the same as for antd-dayjs-webpack-plugin. Check the README of antd-dayjs-webpack-plugin for more details.