LaiTool/electron.vite.config.mjs

26 lines
686 B
JavaScript
Raw Normal View History

2024-05-15 12:57:15 +08:00
import { resolve } from 'path'
import { defineConfig, externalizeDepsPlugin, bytecodePlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import Jsx from '@vitejs/plugin-vue-jsx'
import tsconfigPaths from 'vite-tsconfig-paths';
2024-05-15 12:57:15 +08:00
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin(), bytecodePlugin(),tsconfigPaths()]
2024-05-15 12:57:15 +08:00
},
discord: {
plugins: [externalizeDepsPlugin(), bytecodePlugin(),tsconfigPaths()]
2024-05-15 12:57:15 +08:00
},
preload: {
plugins: [externalizeDepsPlugin(), bytecodePlugin(),tsconfigPaths()]
2024-05-15 12:57:15 +08:00
},
renderer: {
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')
}
},
2024-06-01 15:08:22 +08:00
plugins: [vue(), Jsx()]
2024-05-15 12:57:15 +08:00
}
})