generated from Jonghakseo/chrome-extension-boilerplate-react-vite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.ts
executable file
·59 lines (57 loc) · 1.39 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
48
49
50
51
52
53
54
55
56
57
58
59
import packageJson from './package.json'
/**
* After changing, please reload the extension at `chrome://extensions`
*/
const manifest: chrome.runtime.ManifestV3 = {
manifest_version: 3,
name: packageJson.name,
version: packageJson.version,
description: packageJson.description,
author: 'chenweiyi',
default_locale: 'en',
permissions: ['storage', 'bookmarks'],
options_page: 'src/pages/options/index.html',
background: {
service_worker: 'src/pages/background/index.js',
type: 'module'
},
action: {
default_popup: 'src/pages/popup/index.html',
default_icon: {
48: 'star48.png'
},
default_title: 'my-tab'
},
chrome_url_overrides: {
newtab: 'src/pages/newtab/index.html'
},
icons: {
'128': 'star128.png',
'48': 'star48.png',
'32': 'star32.png',
'16': 'star16.png'
},
// content_scripts: [
// {
// matches: ['http://*/*', 'https://*/*', '<all_urls>'],
// js: ['src/pages/content/index.js'],
// // KEY for cache invalidation
// css: ['assets/css/contentStyle<KEY>.chunk.css']
// }
// ],
// devtools_page: 'src/pages/devtools/index.html',
web_accessible_resources: [
{
resources: [
'assets/js/*.js',
'assets/css/*.css',
'star128.png',
'star48.png',
'star32.png',
'star16.png'
],
matches: ['*://*/*']
}
]
}
export default manifest