vite-start/vite.config.ts

19 lines
390 B
TypeScript
Raw Normal View History

2022-04-27 14:02:52 +08:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
2022-04-27 13:43:49 +08:00
2022-04-27 14:02:52 +08:00
const nodeResolve = (dir) => path.resolve(__dirname, ".", dir);
2022-04-27 13:43:49 +08:00
// https://vitejs.dev/config/
export default defineConfig({
2022-04-27 14:02:52 +08:00
server: {
host: "0.0.0.0",
},
plugins: [vue()],
resolve: {
alias: {
"@": nodeResolve("src"),
"~": nodeResolve("public"),
},
},
});