You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
508 B
TypeScript
27 lines
508 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
import electron from 'vite-plugin-electron'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue(), electron([
|
|
{
|
|
entry: 'src/electron/main/index.ts',
|
|
vite:{
|
|
build: {
|
|
outDir: 'dist-electron/main'
|
|
}
|
|
}
|
|
},
|
|
{
|
|
entry: 'src/electron/preload/index.ts',
|
|
vite:{
|
|
build: {
|
|
outDir: 'dist-electron/preload'
|
|
}
|
|
}
|
|
}
|
|
])],
|
|
})
|