You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
607 B
29 lines
607 B
1 month ago
|
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()],
|
||
|
build: {
|
||
|
rollupOptions: {
|
||
|
input: {
|
||
|
dl: resolve(__dirname, 'src/preload/dl.js'),
|
||
|
index: resolve(__dirname, 'src/preload/index.js')
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
renderer: {
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@renderer': resolve('src/renderer/src')
|
||
|
}
|
||
|
},
|
||
|
plugins: [vue()]
|
||
|
}
|
||
|
})
|