1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-07-02 19:52:47 +03:00
Files
TabsAsideExtension/wxt.config.ts
xfox111 8d9864b276 Patch 3.3.1 (#232)
* fix: opening tab context menu causes tab to open on Firefox #224 (#225)

* build(deps): dependency bump + audit fix + manifest version update

* chore(ci): dependabot group policy update

* docs: copyright dates

* chore(ui): minor branding update
2026-05-17 21:03:44 +12:00

104 lines
1.9 KiB
TypeScript

import { ConfigEnv, defineConfig, UserManifest } from "wxt";
// See https://wxt.dev/api/config.html
export default defineConfig({
modules: ["@wxt-dev/module-react", "@wxt-dev/i18n/module"],
vite: () => ({
build:
{
chunkSizeWarningLimit: 1000
}
}),
imports: {
dirsScanOptions:
{
// Disable auto-imports for project's files
fileFilter: () => false
}
},
manifest: ({ browser }: ConfigEnv) =>
{
const manifest: UserManifest = {
name: "__MSG_manifest_name__",
description: "__MSG_manifest_description__",
homepage_url: "https://github.com/xfox111/TabsAsideExtension/",
action:
{
default_title: "__MSG_manifest_name__"
},
default_locale: "en",
permissions:
[
"storage",
"unlimitedStorage",
"tabs",
"notifications",
"contextMenus",
"tabGroups"
],
optional_permissions:
[
"bookmarks",
"scripting"
],
commands:
{
show_collections:
{
suggested_key:
{
default: "Alt+P",
mac: "MacCtrl+P"
},
description: "__MSG_shortcuts_toggle_sidebar__"
},
set_aside: {
suggested_key:
{
default: "Alt+T",
mac: "MacCtrl+T"
},
description: "__MSG_shortcuts_set_aside__"
},
save:
{
suggested_key:
{
default: "Alt+U",
mac: "MacCtrl+U"
},
description: "__MSG_shortcuts_save_tabs__"
}
},
optional_host_permissions: ["<all_urls>"]
};
if (browser === "firefox")
{
manifest.browser_specific_settings = {
gecko:
{
id: "tabsaside@xfox111.net",
strict_min_version: "139.0",
data_collection_permissions: {
required: ["browsingActivity"],
optional: ["technicalAndInteraction"]
}
}
};
// @ts-expect-error author key in Firefox has a different format
manifest.author = "__MSG_manifest_author__";
}
return manifest;
}
});