mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamAware2-Desktop
synced 2025-04-28 23:36:37 +00:00
45 lines
998 B
TypeScript
45 lines
998 B
TypeScript
import { resolve } from 'path'
|
|
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import { TDesignResolver } from 'unplugin-vue-components/resolvers'
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin()]
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()]
|
|
},
|
|
renderer: {
|
|
resolve: {
|
|
alias: {
|
|
'@renderer': resolve('src/renderer/src')
|
|
}
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
vueJsx(),
|
|
vueDevTools(),
|
|
AutoImport({
|
|
resolvers: [
|
|
TDesignResolver({
|
|
library: 'vue-next'
|
|
})
|
|
]
|
|
}),
|
|
Components({
|
|
resolvers: [
|
|
TDesignResolver({
|
|
library: 'vue-next'
|
|
})
|
|
]
|
|
})
|
|
]
|
|
}
|
|
})
|