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.

30 lines
564 B
TypeScript

import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
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',
},
},
},
]),
],
})