21 lines
408 B
JavaScript
21 lines
408 B
JavaScript
import react from "@vitejs/plugin-react-swc";
|
|
import path from "node:path";
|
|
import { defineConfig } from "vite";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
preview: {
|
|
port: 3000,
|
|
},
|
|
base: "/udlbook",
|
|
});
|