forked from sheepzh/time-tracker-4-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.ts
More file actions
79 lines (76 loc) · 1.82 KB
/
manifest.ts
File metadata and controls
79 lines (76 loc) · 1.82 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* Copyright (c) 2021 Hengyang Zhang
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
/**
* Build the manifest.json in chrome extension directory via this file
*
* @author zhy
* @since 0.0.1
*/
// Not use path alias in manifest.json
import packageInfo from "./package"
import { OPTION_ROUTE } from "./pages/app/router/constants"
const { version, author: { email }, homepage } = packageInfo
const _default: chrome.runtime.ManifestV3 = {
name: '__MSG_meta_marketName__',
description: "__MSG_meta_description__",
version,
author: { email },
default_locale: 'en',
homepage_url: homepage,
manifest_version: 3,
icons: {
16: "static/images/icon-16.png",
48: "static/images/icon-48.png",
128: "static/images/icon-128.png",
},
background: {
service_worker: 'background.js'
},
content_scripts: [
{
matches: [
"<all_urls>"
],
js: [
"content_scripts_skeleton.js",
],
run_at: "document_start"
}
],
permissions: [
'storage',
'tabs',
'contextMenus',
'alarms',
'scripting',
'sidePanel',
],
optional_permissions: [
'tabGroups',
],
host_permissions: [
"<all_urls>",
],
web_accessible_resources: [{
resources: [
'content_scripts.js',
'content_scripts.css',
'static/images/*',
'static/popup.html',
],
matches: ["<all_urls>"],
}],
action: {
default_popup: "static/popup_skeleton.html",
default_icon: "static/images/icon.png",
},
/**
* @since 0.4.0
*/
options_page: 'static/app.html#' + OPTION_ROUTE
}
export default _default