12 lines
278 B
JavaScript
12 lines
278 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: "./", // 确保资源路径是相对的,以便在 Electron 中加载
|
|
server: {
|
|
port: 5173,
|
|
},
|
|
});
|