-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.ts
39 lines (37 loc) · 1 KB
/
manifest.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
import { defineManifest } from "@crxjs/vite-plugin"
import packageData from "./package.json"
const isDev = process.env.NODE_ENV == "development"
export default defineManifest({
name: `${packageData.displayName || packageData.name}${isDev ? ` ➡️ Dev` : ""}`,
description: packageData.description,
version: packageData.version,
manifest_version: 3,
icons: {
16: "img/logo-16.png",
32: "img/logo-32.png",
48: "img/logo-48.png",
128: "img/logo-128.png",
},
options_page: "src/menu/index.html",
action: {
default_popup: "src/menu/index.html",
default_icon: "img/logo-48.png",
},
content_scripts: [
{
matches: ["*://github.com/*"],
js: ["src/stat/index.ts"],
},
],
background: {
service_worker: "src/background.ts",
},
web_accessible_resources: [
{
resources: ["img/logo-16.png", "img/logo-32.png", "img/logo-48.png", "img/logo-128.png"],
matches: [],
},
],
permissions: ["storage"],
host_permissions: ["*://github.com/*"],
})