1
This commit is contained in:
30
manifest.config.ts
Normal file
30
manifest.config.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
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',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user