frp/web/frpc/vite.config.mts

30 lines
670 B
TypeScript
Raw Normal View History

2023-02-26 02:54:53 +08:00
import { fileURLToPath, URL } from 'node:url'
2023-02-26 02:54:53 +08: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-26 02:54:53 +08:00
base: '',
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
resolve: {
alias: {
2023-02-26 02:54:53 +08:00
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
2023-02-26 02:54:53 +08:00
assetsDir: '',
},
2023-02-26 02:54:53 +08:00
})