Passport/pkg/views/vite.config.ts

23 lines
520 B
TypeScript
Raw Normal View History

2024-03-12 13:26:00 +00:00
import { fileURLToPath, URL } from "node:url"
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import vueJsx from "@vitejs/plugin-vue-jsx"
2024-02-25 15:12:42 +00:00
import unocss from "unocss/vite"
2024-01-27 16:05:19 +00:00
2024-02-25 15:12:42 +00:00
// https://vitejs.dev/config/
2024-01-27 16:05:19 +00:00
export default defineConfig({
2024-03-12 13:26:00 +00:00
plugins: [vue(), vueJsx(), unocss()],
2024-02-25 15:12:42 +00:00
resolve: {
alias: {
2024-03-12 13:26:00 +00:00
"@": fileURLToPath(new URL("./src", import.meta.url)),
2024-02-25 15:12:42 +00:00
},
},
2024-01-27 16:05:19 +00:00
server: {
proxy: {
2024-03-16 05:19:11 +00:00
"/api": "http://localhost:8444",
"/.well-known": "http://localhost:8444"
2024-01-27 16:05:19 +00:00
}
}
2024-02-25 15:12:42 +00:00
})