-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.js
41 lines (39 loc) · 1.05 KB
/
manifest.js
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
import packageJson from './package.json' assert { type: 'json' };
/**
* After changing, please reload the extension at `chrome://extensions`
* @type {chrome.runtime.ManifestV3}
*/
const manifest = {
manifest_version: 3,
name: '__MSG_appName__',
version: packageJson.version,
description: '__MSG_appDescription__',
permissions: ['storage', 'sidePanel', 'contextMenus'],
side_panel: {
default_path: 'src/pages/sidepanel/index.html',
},
options_page: 'src/pages/options/index.html',
default_locale: "zh_CN",
background: {
service_worker: 'src/pages/background/index.js',
type: 'module',
},
action: {
default_popup: 'src/pages/popup/index.html',
default_icon: 'logo-128.png',
},
icons: {
128: 'logo-128.png',
64: 'logo-64.png',
32: 'logo-32.png',
16: 'logo-16.png'
},
devtools_page: 'src/pages/devtools/index.html',
web_accessible_resources: [
{
resources: ['assets/js/*.js', 'assets/css/*.css', 'icon-128.png', 'icon-32.png'],
matches: ['*://*/*'],
},
],
};
export default manifest;