flat: 暂存
This commit is contained in:
37
electron.vite.config.ts
Normal file
37
electron.vite.config.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import { resolve } from "path";
|
||||
import {
|
||||
defineConfig,
|
||||
externalizeDepsPlugin,
|
||||
bytecodePlugin,
|
||||
} from "electron-vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
||||
export default defineConfig({
|
||||
main: {
|
||||
plugins: [externalizeDepsPlugin(), bytecodePlugin()],
|
||||
},
|
||||
preload: {
|
||||
plugins: [externalizeDepsPlugin(), bytecodePlugin()],
|
||||
},
|
||||
renderer: {
|
||||
resolve: {
|
||||
alias: {
|
||||
"@renderer": resolve("src/renderer/src"),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 51730,
|
||||
fs: {
|
||||
strict: true,
|
||||
},
|
||||
// "proxy": {
|
||||
// "/api": {
|
||||
// target: "http://localhost:3000",
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||
// },
|
||||
// },
|
||||
},
|
||||
plugins: [vue()],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user