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'
|
2024-10-28 18:38:11 +08:00
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
2024-05-15 12:57:15 +08:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
main: {
|
2024-10-28 18:38:11 +08:00
|
|
|
plugins: [externalizeDepsPlugin(), bytecodePlugin(),tsconfigPaths()]
|
2024-05-15 12:57:15 +08:00
|
|
|
},
|
|
|
|
|
discord: {
|
2024-10-28 18:38:11 +08:00
|
|
|
plugins: [externalizeDepsPlugin(), bytecodePlugin(),tsconfigPaths()]
|
2024-05-15 12:57:15 +08:00
|
|
|
},
|
|
|
|
|
preload: {
|
2024-10-28 18:38:11 +08:00
|
|
|
plugins: [externalizeDepsPlugin(), bytecodePlugin(),tsconfigPaths()]
|
2024-05-15 12:57:15 +08:00
|
|
|
},
|
|
|
|
|
renderer: {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2024-11-02 18:18:55 +08:00
|
|
|
'@renderer': resolve('src/renderer/src'),
|
|
|
|
|
"@" : resolve('src/'),
|
2024-05-15 12:57:15 +08:00
|
|
|
}
|
|
|
|
|
},
|
2024-06-01 15:08:22 +08:00
|
|
|
plugins: [vue(), Jsx()]
|
2024-05-15 12:57:15 +08:00
|
|
|
}
|
|
|
|
|
})
|