This repository has been archived on 2024-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
lol-assistant/electron.vite.config.mjs
2024-07-13 20:32:03 +08:00

21 lines
414 B
JavaScript

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()]
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
plugins: [vue()]
}
})