mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 07:09:20 +08:00
feat: 新增浏览器插件
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { defineManifest } from '@crxjs/vite-plugin';
|
||||
|
||||
import packageJson from './package.json';
|
||||
|
||||
const { version } = packageJson;
|
||||
|
||||
export default defineManifest({
|
||||
manifest_version: 3,
|
||||
name: 'ECBI 数据同步',
|
||||
description: '从电商平台后台读取推广费用并同步到 BI(企业内用)',
|
||||
version,
|
||||
action: {
|
||||
default_popup: 'src/popup/index.html',
|
||||
default_title: 'ECBI 数据同步',
|
||||
},
|
||||
background: {
|
||||
service_worker: 'src/background/index.ts',
|
||||
type: 'module',
|
||||
},
|
||||
content_scripts: [
|
||||
{
|
||||
matches: ['http://*/*', 'https://*/*'],
|
||||
js: ['src/content/index.ts'],
|
||||
run_at: 'document_idle',
|
||||
},
|
||||
],
|
||||
permissions: ['storage', 'activeTab', 'scripting'],
|
||||
// 开发期便于任意页注入 Content Script;正式接平台后改为具体域名
|
||||
host_permissions: ['http://*/*', 'https://*/*'],
|
||||
icons: {
|
||||
'16': 'public/icons/icon-16.png',
|
||||
'48': 'public/icons/icon-48.png',
|
||||
'128': 'public/icons/icon-128.png',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user