2022-04-21 00:50:12 +08:00
|
|
|
|
import { ConfigEnv, UserConfigExport } from "vite"
|
|
|
|
|
import { resolve } from "path"
|
|
|
|
|
import vue from "@vitejs/plugin-vue"
|
2022-04-20 22:40:26 +08:00
|
|
|
|
|
2022-04-21 00:50:12 +08:00
|
|
|
|
/** 配置项文档:https://vitejs.dev/config */
|
|
|
|
|
export default (env: ConfigEnv): UserConfigExport => {
|
|
|
|
|
return {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
/** @ 符号指向 src 目录 */
|
|
|
|
|
"@": resolve(__dirname, "./src"),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: [vue()],
|
|
|
|
|
}
|
|
|
|
|
}
|