forked from heyito/ito
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron.vite.config.ts
More file actions
75 lines (72 loc) · 1.71 KB
/
electron.vite.config.ts
File metadata and controls
75 lines (72 loc) · 1.71 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { resolve } from 'path'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
export default defineConfig({
main: {
build: {
sourcemap: true,
rollupOptions: {
input: {
main: resolve(__dirname, 'lib/main/main.ts'),
},
},
},
resolve: {
alias: {
'@/app': resolve(__dirname, 'app'),
'@/lib': resolve(__dirname, 'lib'),
'@/resources': resolve(__dirname, 'resources'),
},
},
plugins: [
externalizeDepsPlugin(),
sentryVitePlugin({ org: 'demox-labs', project: 'ito' }),
],
},
preload: {
build: {
sourcemap: true,
rollupOptions: {
input: {
preload: resolve(__dirname, 'lib/preload/preload.ts'),
},
},
},
resolve: {
alias: {
'@/app': resolve(__dirname, 'app'),
'@/lib': resolve(__dirname, 'lib'),
'@/resources': resolve(__dirname, 'resources'),
},
},
plugins: [
externalizeDepsPlugin(),
sentryVitePlugin({ org: 'demox-labs', project: 'ito' }),
],
},
renderer: {
root: './app',
build: {
sourcemap: true,
rollupOptions: {
input: {
index: resolve(__dirname, 'app/index.html'),
},
},
},
resolve: {
alias: {
'@/app': resolve(__dirname, 'app'),
'@/lib': resolve(__dirname, 'lib'),
'@/resources': resolve(__dirname, 'resources'),
},
},
plugins: [
tailwindcss(),
react(),
sentryVitePlugin({ org: 'demox-labs', project: 'ito' }),
],
},
})