This commit is contained in:
cxc
2023-02-13 16:47:43 +08:00
commit 221c466bdb
37 changed files with 4786 additions and 0 deletions

24
vite.config.ts Normal file
View File

@ -0,0 +1,24 @@
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
"/dev-api": {
target: "http://192.168.110.10:1618",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, "")
}
}
},
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url))
}
}
});