24 lines
484 B
JavaScript
24 lines
484 B
JavaScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
const path = require("path");
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
host: "127.0.0.1",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
// enable jest-like global test APIs
|
|
globals: true,
|
|
// simulate DOM with happy-dom
|
|
// (requires installing happy-dom as a peer dependency)
|
|
environment: "happy-dom",
|
|
},
|
|
});
|