mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 03:19:18 +08:00
36 lines
988 B
TypeScript
36 lines
988 B
TypeScript
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',
|
|
'64': 'public/icons/icon-64.png',
|
|
'128': 'public/icons/icon-128.png',
|
|
},
|
|
});
|