import { defineConfig } from "vite"; import path from 'path' import vue from "@vitejs/plugin-vue"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], /* src 别名为 @ */ resolve: { alias: { '@': path.resolve(__dirname, './src'), }, }, });