frp/web/frpc/vite.config.ts

30 lines
670 B
TypeScript
Raw Normal View History

2023-02-25 19:54:53 +01:00
import { fileURLToPath, URL } from 'node:url'
2023-02-25 19:54:53 +01:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/
export default defineConfig({
2023-02-25 19:54:53 +01:00
base: '',
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
resolve: {
alias: {
2023-02-25 19:54:53 +01:00
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
2023-02-25 19:54:53 +01:00
assetsDir: '',
},
2023-02-25 19:54:53 +01:00
})