vite-start/vite.config.ts

20 lines
405 B
TypeScript
Raw Permalink Normal View History

2022-07-22 16:21:35 +08:00
// @ts-nocheck
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"),
},
},
});