ZygoPresentationHelper/electron.vite.config.mjs

27 lines
531 B
JavaScript

import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import solid from 'vite-plugin-solid'
import UnoCSS from 'unocss/vite'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
server: {
hmr: false,
},
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [UnoCSS({
mode: "per-module",
}),solid()]
}
})