vue-ldap-ui/vite.config.ts

30 lines
644 B
TypeScript

import { defineConfig } from "vite";
import { fileURLToPath, URL } from "node:url";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
build: {
manifest: true,
chunkSizeWarningLimit: 600,
},
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
"@views": fileURLToPath(new URL("./src/views", import.meta.url)),
},
},
server: {
port: 6881,
proxy: {
"/api/": {
target: "http://127.0.0.1:6880/",
},
},
},
});