import {defineManifest} from '@crxjs/vite-plugin'; import pkg from './package.json'; export default defineManifest({ manifest_version: 3, name: pkg.name, version: pkg.version, icons: { 48: 'public/logo.png', }, action: { default_icon: { 48: 'public/logo.png', }, default_popup: 'src/popup/index.html', }, options_page: 'src/options/index.html', content_scripts: [ { js: ['src/content/main.ts'], matches: ['https://*/*', 'http://*/*'], }, ], host_permissions: ['https://*/*', 'http://*/*'], permissions: ['storage', 'tabs', 'scripting', 'activeTab', 'windows', 'alarms'], background: { service_worker: 'src/background/index.ts', type: 'module', }, externally_connectable: { matches: [ "http://localhost/*", ] } });