39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { defineConfig } from 'wxt';
|
||
|
||
export default defineConfig({
|
||
manifest: {
|
||
name: '电商套图工作台',
|
||
description: '采集 Ozon / 1688 / 淘宝 / 天猫 商品信息与图片,一键生成电商套图并导出',
|
||
permissions: [
|
||
'storage',
|
||
'sidePanel',
|
||
'activeTab',
|
||
'scripting' // 执行 content script 函数需要
|
||
],
|
||
host_permissions: [
|
||
// Ozon 商品页 + 图片 CDN
|
||
'https://*.ozon.ru/*',
|
||
'https://*.ozon.kz/*',
|
||
'https://*.ozon.by/*',
|
||
'https://*.ozonusercontent.com/*',
|
||
// 1688 / 淘宝 / 天猫 + 阿里 CDN
|
||
'https://detail.1688.com/*',
|
||
'https://item.taobao.com/*',
|
||
'https://detail.tmall.com/*',
|
||
'https://*.alicdn.com/*',
|
||
// mtop 开放接口(淘宝主数据/图文详情兜底)
|
||
'https://h5api.m.taobao.com/*',
|
||
'https://h5api.m.tmall.com/*',
|
||
// 1688 详情数据 CDN(description.detailUrl)
|
||
'https://itemcdn.tmall.com/*',
|
||
// 本机后端(上传 / 生成套图用);生产换成你的公网域名
|
||
'http://127.0.0.1:3300/*',
|
||
'http://localhost:3300/*'
|
||
],
|
||
action: {
|
||
default_title: '电商套图工作台'
|
||
}
|
||
},
|
||
modules: ['react']
|
||
});
|