generated from Jonghakseo/chrome-extension-boilerplate-react-vite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
40 lines (38 loc) · 1021 Bytes
/
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
import packageJson from './package.json';
const manifest: browser._manifest.WebExtensionManifest = {
manifest_version: 2,
name: '__MSG_extName__',
default_locale: 'en',
version: packageJson.version,
permissions: ['scripting', 'storage', 'tabs', '*://*/*'],
content_security_policy: "script-src 'self' 'unsafe-eval'; object-src 'self'",
browser_action: {
default_title: '__MSG_extName__',
default_icon: {
'16': 'icons/logo-16.png',
'32': 'icons/logo-32.png',
'48': 'icons/logo-48.png',
'72': 'icons/logo-72.png',
'128': 'icons/logo-128.png'
},
default_popup: 'index.html'
},
icons: {
'16': 'icons/logo-16.png',
'48': 'icons/logo-48.png',
'128': 'icons/logo-128.png',
'256': 'icons/logo-256.png',
'512': 'icons/logo-512.png'
},
background: {
scripts: ['background-script.js'],
persistent: false
},
content_scripts: [
{
matches: ['*://*/*'],
js: ['content-script.js']
}
]
};
export default manifest;