Skip to content

Commit

Permalink
saving state
Browse files Browse the repository at this point in the history
  • Loading branch information
whizzzkid committed Apr 18, 2023
1 parent 2d2124c commit 1692d5b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion add-on/manifest.chromium.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"minimum_chrome_version": "101",
"minimum_chrome_version": "111",
"permissions": [
"clipboardWrite",
"contextMenus",
Expand Down
7 changes: 5 additions & 2 deletions add-on/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"options_ui": {
"browser_style": false
},
"background": {
"service_worker": "",
"scripts": ["dist/bundles/backgroundPage.firefox.bundle.js"]
},
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "109.0.0"
"strict_min_version": "111.0.0"
}
},
"permissions": [
"<all_urls>",
"idle",
"tabs",
"notifications",
Expand Down
13 changes: 13 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,18 @@ const bgConfig = merge(commonConfig, {
}
})

/**
* background page bundle (with heavy dependencies)
* @type {import('webpack').Configuration}
*/
const bgFirefoxConfig = merge(bgConfig, {
target: 'web',
output: {
filename: '[name].firefox.bundle.js',
globalObject: 'window'
}
})

/**
* user interface pages with shared common libraries
* @type {import('webpack').Configuration}
Expand Down Expand Up @@ -209,6 +221,7 @@ const contentScriptsConfig = merge(commonConfig, {

const config = [
bgConfig,
bgFirefoxConfig,
uiConfig,
contentScriptsConfig
]
Expand Down

0 comments on commit 1692d5b

Please sign in to comment.