-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron.vite.config.ts
45 lines (44 loc) · 984 Bytes
/
electron.vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Plugins
import vue from '@vitejs/plugin-vue'
import vuetify from 'vite-plugin-vuetify'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import wasm from 'vite-plugin-wasm'
import worker from 'vite-plugin-worker'
// Utilities
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import { resolve } from 'path'
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
resolve: {
alias: {
'@': resolve('src/renderer/src')
}
},
plugins: [
vue(),
wasm(),
worker,
vuetify({
autoImport: true
}),
VueI18nPlugin({
include: resolve(__dirname, './locales/**')
})
],
css: {
preprocessorOptions: {
scss: { additionalData: ` @import "@/styles/variables.scss";` }
}
},
worker: {
format: 'es'
},
assetsInclude: ['**/*.wasm']
}
})