19 lines
390 B
TypeScript
19 lines
390 B
TypeScript
|
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"),
|
||
|
},
|
||
|
},
|
||
|
});
|