jdcProject_front/vite.config.ts
2022-04-21 00:50:12 +08:00

17 lines
394 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { ConfigEnv, UserConfigExport } from "vite"
import { resolve } from "path"
import vue from "@vitejs/plugin-vue"
/** 配置项文档https://vitejs.dev/config */
export default (env: ConfigEnv): UserConfigExport => {
return {
resolve: {
alias: {
/** @ 符号指向 src 目录 */
"@": resolve(__dirname, "./src"),
},
},
plugins: [vue()],
}
}