This commit is contained in:
zhu
2026-05-06 10:08:17 +08:00
parent 4c0a1d8151
commit 8b9985873a
10 changed files with 71 additions and 87 deletions

View File

@@ -1,30 +1,30 @@
import { defineManifest } from '@crxjs/vite-plugin';
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',
manifest_version: 3,
name: pkg.name,
version: pkg.version,
icons: {
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://*/*'],
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',
},
],
host_permissions: ['https://*/*', 'http://*/*'],
permissions: ['storage', 'tabs', 'scripting', 'activeTab', 'windows'],
background: {
service_worker: 'src/background/index.ts',
type: 'module',
},
});