代码初始化

This commit is contained in:
2026-05-15 16:35:31 +08:00
commit b56c63e166
31 changed files with 12969 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import { resolve } from 'node:path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'electron/main.ts')
}
}
}
},
preload: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: {
index: resolve(__dirname, 'electron/preload.ts')
}
}
}
},
renderer: {
plugins: [react()]
}
})