李岩岩 23a0e55979 feat(M1.5): 开发环境验证 (v0.0.5)
- 验证扩展可在 Chrome 中正常加载
- 修复 Vite HMR WebSocket 在 Chrome 扩展中的报错
- 禁用 HMR 避免 chrome-extension:// 协议限制
- 所有模块 Console 输出正常
2026-02-10 10:08:26 +08:00

44 lines
914 B
JSON

{
"manifest_version": 3,
"name": "沙拉查词",
"version": "0.0.5",
"description": "聚合词典划词翻译",
"permissions": [
"storage",
"contextMenus",
"clipboardWrite"
],
"optional_permissions": [
"clipboardRead"
],
"host_permissions": [
"<all_urls>"
],
"background": {
"service_worker": "src/background/index.js",
"type": "module"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["src/content/index.js"],
"run_at": "document_end"
}
],
"action": {
"default_popup": "src/popup/index.html",
"default_title": "沙拉查词",
"default_icon": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"options_page": "src/options/index.html"
}