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.
21 lines
526 B
21 lines
526 B
import { defineConfig } from 'electron-vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'node:path'
|
|
|
|
export default defineConfig({
|
|
main: { build: { externalizeDeps: true } },
|
|
preload: {
|
|
build: {
|
|
externalizeDeps: false,
|
|
rollupOptions: {
|
|
external: ['electron'],
|
|
output: { format: 'cjs', entryFileNames: 'index.js' }
|
|
}
|
|
}
|
|
},
|
|
renderer: {
|
|
resolve: { alias: { '@': resolve('src/renderer/src') } },
|
|
plugins: [vue()],
|
|
server: { host: '127.0.0.1' }
|
|
}
|
|
})
|
|
|