import { defineManifest } from '@crxjs/vite-plugin' import pkg from './package.json' export default defineManifest({ manifest_version: 3, name: 'Gomdown Helper', description: 'Send browser downloads to gdown', version: pkg.version, default_locale: 'en', icons: { '16': 'images/16.png', '32': 'images/32.png', '48': 'images/48.png', '128': 'images/128.png', }, background: { service_worker: 'src/background/index.ts', type: 'module', }, action: { default_popup: 'src/popup/index.html', default_title: 'Gomdown Helper', default_icon: { '16': 'images/16.png', '32': 'images/32.png', '48': 'images/48.png', '128': 'images/128.png', }, }, options_page: 'src/config/index.html', commands: { create_clip_from_selection: { suggested_key: { default: 'Ctrl+Shift+Y', mac: 'Command+Shift+Y', }, description: 'Create clip from current text selection', }, }, content_scripts: [ { matches: [''], js: ['src/content/index.ts'], run_at: 'document_start', all_frames: true, }, ], permissions: ['downloads', 'downloads.shelf', 'notifications', 'storage', 'contextMenus', 'cookies', 'webRequest', 'nativeMessaging', 'scripting'], host_permissions: [''], web_accessible_resources: [ { resources: ['images/*'], matches: [''], }, ], })