-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.js
executable file
·51 lines (48 loc) · 1.18 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
42
43
44
45
46
47
48
49
50
51
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: 'KonvaJS Devtools',
version: packageJson.version,
description: packageJson.description,
permissions: ['storage'],
background: {
service_worker: 'src/pages/background/index.js',
type: 'module',
},
action: {
default_popup: 'src/pages/popup/index.html',
default_icon: 'icon32_black.png',
},
icons: {
16: 'icon16.png',
32: 'icon32.png',
48: 'icon48.png',
128: 'icon128.png',
},
content_scripts: [
{
matches: ['http://*/*', 'https://*/*', '<all_urls>'],
js: ['src/pages/content/index.js'],
css: [],
},
],
devtools_page: 'src/pages/devtools/index.html',
web_accessible_resources: [
{
resources: ['assets/js/*.js', 'assets/css/*.css', 'src/pages/detector/index.js'],
matches: ['*://*/*'],
},
],
};
if (process.env.__FIREFOX__ === 'true') {
manifest.browser_specific_settings = {
gecko: {
id: '[email protected]',
},
};
}
export default manifest;