import vue from '@vitejs/plugin-vue' import AutoImport from 'unplugin-auto-import/vite' import Icons from 'unplugin-icons/vite' import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' import Components from 'unplugin-vue-components/vite' import { defineConfig } from 'vite' const rootPath = new URL('.', import.meta.url).pathname // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue(), AutoImport({ imports: [ { 'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'], }, ], }), Components({ resolvers: [NaiveUiResolver()], }), Icons(), ], resolve: { alias: { '@': rootPath + 'src', stores: rootPath + 'src/stores', wailsjs: rootPath + 'wailsjs', }, }, })