autopak_server/vite.config.ts

19 lines
390 B
TypeScript
Raw Permalink Normal View History

2022-05-24 07:24:41 +08:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
const nodeResolve = (dir) => path.resolve(__dirname, ".", dir);
// https://vitejs.dev/config/
export default defineConfig({
server: {
host: "0.0.0.0",
},
plugins: [vue()],
resolve: {
alias: {
"@": nodeResolve("src"),
"~": nodeResolve("public"),
},
},
});