-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron.vite.config.ts
More file actions
72 lines (68 loc) · 1.86 KB
/
Copy pathelectron.vite.config.ts
File metadata and controls
72 lines (68 loc) · 1.86 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
import { sentryVitePlugin } from "@sentry/vite-plugin"
import { defineConfig } from "electron-vite"
import react from "@vitejs/plugin-react"
import svgr from "vite-plugin-svgr"
import packageJson from "./package.json"
const s = JSON.stringify
export default defineConfig({
main: {
build: {
rollupOptions: {
input: "src/main-process/main.ts"
},
outDir: "out/main-process",
sourcemap: true,
externalizeDeps: true
},
plugins: [
sentryVitePlugin({
org: "puncher1",
project: "exifoo-electron"
})
],
define: {
__RELEASE_REPO__: s("https://github.com/codeofandrin/exifoo-releases")
}
},
preload: {
build: {
rollupOptions: {
input: "src/main-process/preload.ts"
},
outDir: "out/main-process",
emptyOutDir: false,
sourcemap: true,
externalizeDeps: true
},
plugins: [
sentryVitePlugin({
org: "puncher1",
project: "exifoo-electron"
})
]
},
renderer: {
build: {
sourcemap: true
},
plugins: [
react(),
svgr({
svgrOptions: {
// svgr options
}
}),
sentryVitePlugin({
org: "puncher1",
project: "exifoo-electron"
})
],
define: {
__APP_NAME__: s(packageJson.name),
__APP_DESC__: s(packageJson.description),
__APP_VERSION__: s(packageJson.version),
__APP_AUTHOR__: packageJson.author,
__RELEASE_REPO__: s("https://github.com/codeofandrin/exifoo-releases")
}
}
})