-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathelectron.vite.config.ts
45 lines (44 loc) · 1.01 KB
/
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
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import { resolve } from "path";
import devtools from "solid-devtools/vite";
import lucidePreprocess from "vite-plugin-lucide-preprocess";
import solid from "vite-plugin-solid";
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
resolve: {
alias: {
"@main": resolve("src/main"),
"@shared": resolve("src/shared"),
},
},
},
preload: {
plugins: [externalizeDepsPlugin()],
resolve: {
alias: {
"@shared": resolve("src/shared"),
},
},
},
renderer: {
resolve: {
alias: {
"@renderer": resolve("src/renderer/src"),
"@shared": resolve("src/shared"),
},
},
plugins: [
lucidePreprocess(),
devtools({
autoname: true,
locator: {
targetIDE: "vscode", // can also be "webstorm"
componentLocation: true,
jsxLocation: true,
},
}),
solid(),
],
},
});