123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- * @Author: fxs bjnsfxs@163.com
- * @Date: 2024-08-20 14:06:49
- * @LastEditors: fxs bjnsfxs@163.com
- * @LastEditTime: 2024-08-30 12:09:21
- * @FilePath: \Game-Backstage-Management-System\vite.config.ts
- * @Description:
- *
- */
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import { fileURLToPath, URL } from 'node:url'
- import AutoImport from 'unplugin-auto-import/vite'
- import Components from 'unplugin-vue-components/vite'
- import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
- import Icons from 'unplugin-icons/vite'
- import IconsResolver from 'unplugin-icons/resolver'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [
- vue(),
- AutoImport({
- resolvers: [ElementPlusResolver()]
- }),
- Components({
- resolvers: [
- ElementPlusResolver(),
- IconsResolver({
- prefix: 'icon'
- })
- ]
- }),
- Icons({
- autoInstall: true
- })
- ],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
- })
|