Files
store_ai_extension/manifest.config.ts
2026-04-30 10:55:03 +08:00

31 lines
722 B
TypeScript

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'],
background: {
service_worker: 'src/background/index.ts',
type: 'module',
},
});