This commit is contained in:
2023-12-20 17:29:59 +08:00
parent 1bf86099d8
commit ec316824b7
8 changed files with 139 additions and 134 deletions

View File

@ -1,10 +1,13 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import {fileURLToPath, URL} from 'node:url'
import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true
},
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url))