forked from xushengfeng/eSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron.vite.config.ts
27 lines (26 loc) · 966 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
import { defineConfig } from "electron-vite";
import * as path from "path";
export default defineConfig({
main: {
build: {
rollupOptions: {
external: ["@electron-toolkit/utils"],
},
},
},
renderer: {
build: {
rollupOptions: {
input: {
index: path.resolve(__dirname, "src/renderer/index.html"),
clip: path.resolve(__dirname, "src/renderer/capture.html"),
setting: path.resolve(__dirname, "src/renderer/setting.html"),
help: path.resolve(__dirname, "src/renderer/help.html"),
ding: path.resolve(__dirname, "src/renderer/ding.html"),
recorder: path.resolve(__dirname, "src/renderer/recorder.html"),
browser_bg: path.resolve(__dirname, "src/renderer/browser_bg.html"),
},
},
},
},
});