123456789101112131415161718192021222324252627 |
- import { UserConfig } from 'vite';
- import WindiCSS from 'vite-plugin-windicss';
- import Icons, { ViteIconsResolver } from 'vite-plugin-icons';
- import Components from 'vite-plugin-components';
- const config: UserConfig = {
- optimizeDeps: {
- exclude: ['vue-demi', '@vueuse/shared', '@vueuse/core'],
- },
- plugins: [
- Components({
- dirs: ['.vitepress/theme/components'],
- customLoaderMatcher: (id) => id.endsWith('.md'),
- customComponentResolvers: [
- ViteIconsResolver({
- componentPrefix: '',
- }),
- ],
- }),
- Icons(),
- WindiCSS({
- preflight: false,
- }),
- ],
- };
- export default config;
|