-
Notifications
You must be signed in to change notification settings - Fork 408
Expand file tree
/
Copy pathwxt.config.ts
More file actions
34 lines (32 loc) · 768 Bytes
/
wxt.config.ts
File metadata and controls
34 lines (32 loc) · 768 Bytes
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
import { defineConfig } from "wxt"
const iconMap = {
16: "/icon.png",
32: "/icon.png",
48: "/icon.png",
64: "/icon.png",
128: "/icon.png",
}
export default defineConfig({
srcDir: "src",
modules: ["@wxt-dev/module-react"],
manifest: ({ browser }) => ({
name: "RSSHub Radar",
description: "__MSG_extensionDescription__",
default_locale: "en",
permissions: ["tabs", "offscreen", "storage", "alarms"],
host_permissions: ["https://*/*"],
optional_permissions: ["notifications"],
icons: iconMap,
action: {
default_icon: iconMap,
},
browser_specific_settings:
browser === "firefox"
? {
gecko: {
id: "[email protected]",
},
}
: undefined,
}),
})