Files
mofumofu/vite.config.ts

17 lines
344 B
TypeScript
Raw Normal View History

2023-12-20 16:42:21 +08:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
2023-12-20 17:29:59 +08:00
import { fileURLToPath, URL } from 'node:url'
2023-12-20 16:42:21 +08:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2023-12-20 17:29:59 +08:00
server: {
host: true
},
2023-12-20 16:42:21 +08:00
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url))
}
}
});