初始版本
This commit is contained in:
21
electron.vite.config.ts
Normal file
21
electron.vite.config.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
export default defineConfig({
|
||||
main: {
|
||||
plugins: [externalizeDepsPlugin()]
|
||||
},
|
||||
preload: {
|
||||
plugins: [externalizeDepsPlugin()]
|
||||
},
|
||||
renderer: {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@renderer': resolve('src/renderer/src')
|
||||
}
|
||||
},
|
||||
plugins: [vue()],
|
||||
assetsInclude: ["**/*.node", "**.*.lib", "**/*.dll", "**/*.xml"],
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user