generated from Jonghakseo/chrome-extension-boilerplate-react-vite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
executable file
·47 lines (45 loc) · 1.01 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
40
41
42
43
44
45
46
47
import packageJson from "./package.json";
const manifest: chrome.runtime.ManifestV3 = {
manifest_version: 3,
name: packageJson.name,
version: packageJson.version,
description: packageJson.description,
background: {
service_worker: "src/pages/background/index.js",
type: "module",
},
action: {
default_popup: "src/pages/popup/index.html",
default_icon: "icon-32.png",
},
icons: {
"128": "icon-128.png",
},
content_scripts: [
{
matches: ["https://weread.qq.com/*"],
js: ["src/pages/content/index.js"],
},
],
permissions: ["storage", "webRequest"],
host_permissions: [
"https://i.weread.qq.com/*",
"https://weread.qq.com/*",
"https://www.yuque.com/api/v2/*",
],
web_accessible_resources: [
{
resources: [
"assets/js/*.js",
"assets/css/*.css",
"icon-128.png",
"icon-32.png",
],
matches: ["*://*/*"],
},
],
sandbox: {
pages: ["src/pages/sandbox/index.html"],
},
};
export default manifest;