stayby-admin-front-ts/vite.config.ts

16 lines
316 B
TypeScript
Raw Normal View History

2024-09-22 20:51:30 +08:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";
// https://vitejs.dev/config/
2024-09-23 19:35:46 +08:00
export default ({ mode }) => defineConfig({
2024-09-22 20:51:30 +08:00
plugins: [vue()],
2024-09-23 19:35:46 +08:00
base: mode === 'development' ? '/' : './',
2024-09-22 20:51:30 +08:00
resolve: {
alias: {
"@": resolve(__dirname, "src"),
},
},
2024-09-23 19:35:46 +08:00
})