import { URL, fileURLToPath } from 'node:url' import { defineConfig } from 'vite' import Components from 'unplugin-vue-components/vite' import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers' import vue from '@vitejs/plugin-vue' import UnoCSS from 'unocss/vite' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue(), UnoCSS(), Components({ resolvers: [ AntDesignVueResolver({ importStyle: false, // css in js }), ], }), ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, server: { open: true, }, })