vite-start/vite.config.ts
taolin 7c701e6ca8
Some checks reported errors
continuous-integration/drone/push Build encountered an error
fix: px
2022-07-22 16:21:35 +08:00

20 lines
405 B
TypeScript

// @ts-nocheck
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"),
},
},
});