34 lines
726 B
JavaScript
34 lines
726 B
JavaScript
import path from "node:path";
|
|
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { AntdvNextResolver } from "@antdv-next/auto-import-resolver";
|
|
import Components from "unplugin-vue-components/vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
host: "127.0.0.1",
|
|
port: 5180,
|
|
strictPort: true,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://127.0.0.1:8088",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
tailwindcss(),
|
|
vue(),
|
|
Components({
|
|
resolvers: [AntdvNextResolver()],
|
|
}),
|
|
],
|
|
});
|