build: update manifest and webpack config

This commit is contained in:
EnixCoda 2022-12-16 00:43:34 +08:00
parent 00cc32b6d6
commit c9e1bb4887
2 changed files with 7 additions and 13 deletions

View file

@ -6,14 +6,9 @@
"128": "icons/Gitako-128.png",
"256": "icons/Gitako-256.png"
},
"permissions": ["storage", "contextMenus", "activeTab"],
"host_permissions": [
"*://*.github.com/*",
"*://gitako.enix.one/*",
"*://*.sentry.io/*",
"https://*/*",
"http://*/*"
],
"permissions": ["scripting", "storage", "contextMenus", "activeTab"],
"host_permissions": ["*://*.github.com/*", "*://gitako.enix.one/*", "*://*.sentry.io/*"],
"optional_host_permissions": ["*://*/*"],
"web_accessible_resources": [
{
"resources": ["icons/vscode/*"],
@ -25,12 +20,10 @@
}
],
"background": {
"scripts": ["background.js"]
"service_worker": "background.js"
},
"action": {
"browser": {
"default_icon": "icons/Gitako.png"
}
"default_icon": "icons/Gitako.png"
},
"content_scripts": [
{

View file

@ -120,7 +120,8 @@ module.exports = {
test: /\.js$/,
loader: 'babel-loader',
// Transpile as least files under node_modules
include: /node_modules\/(webext-content-scripts|webext-detect-page)\/.*\.js$/,
include:
/node_modules\/(webext-content-scripts|webext-detect-page|webext-dynamic-content-scripts)\/.*\.js$/,
options: {
cacheDirectory: true,
},