mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: update manifest fields
This commit is contained in:
parent
d70939af78
commit
62bacc65ee
2 changed files with 25 additions and 11 deletions
|
|
@ -6,21 +6,31 @@
|
|||
"128": "icons/Gitako-128.png",
|
||||
"256": "icons/Gitako-256.png"
|
||||
},
|
||||
"permissions": [
|
||||
"storage",
|
||||
"contextMenus",
|
||||
"activeTab",
|
||||
"permissions": ["storage", "contextMenus", "activeTab"],
|
||||
"host_permissions": [
|
||||
"*://*.github.com/*",
|
||||
"*://gitako.now.sh/*",
|
||||
"*://*.sentry.io/*"
|
||||
"*://gitako.enix.one/*",
|
||||
"*://*.sentry.io/*",
|
||||
"https://*/*",
|
||||
"http://*/*"
|
||||
],
|
||||
"web_accessible_resources": [
|
||||
{
|
||||
"resources": ["icons/vscode/*"],
|
||||
"matches": ["http://*/*", "https://*/*"]
|
||||
},
|
||||
{
|
||||
"resources": ["content.css"],
|
||||
"matches": ["http://*/*", "https://*/*"]
|
||||
}
|
||||
],
|
||||
"optional_permissions": ["http://*/*", "https://*/*"],
|
||||
"web_accessible_resources": ["icons/vscode/*", "content.css"],
|
||||
"background": {
|
||||
"scripts": ["background.js"]
|
||||
},
|
||||
"browser_action": {
|
||||
"default_icon": "icons/Gitako.png"
|
||||
"action": {
|
||||
"browser": {
|
||||
"default_icon": "icons/Gitako.png"
|
||||
}
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,8 +43,12 @@ const plugins = [
|
|||
}
|
||||
|
||||
if (!IN_PRODUCTION_MODE) {
|
||||
// enable source mapping while developing
|
||||
Object.assign(manifest, {
|
||||
web_accessible_resources: manifest.web_accessible_resources.concat('*.map'), // enable source mapping while developing
|
||||
web_accessible_resources: manifest.web_accessible_resources.concat({
|
||||
resources: ['*.map'],
|
||||
matches: ['*://*/*']
|
||||
}),
|
||||
})
|
||||
}
|
||||
return JSON.stringify(manifest)
|
||||
|
|
|
|||
Loading…
Reference in a new issue