firefox-addon-webextensions - 使用 web-ext 使用 node_module 脚本签署 webextension
问题描述
我正在使用web-ext来签署插件,但我总是收到相同的错误消息:
A content script defined in the manifest could not be found.
Error: Content script defined in the manifest could not be found at "node_modules/jquery/dist/jquery.min.js".
我已经尝试更改manifest.json file
with中的路径./
,例如:
"content_scripts": [
{
"matches": ["*://*/*"],
"js": [
"./node_modules/jquery/dist/jquery.min.js"
]
}
]
./
但是该消息不断出现,并且由于该消息一直在抱怨,因此它忽略了could not be found at "node_modules/...
。
不确定是否有办法清除 web-ext 缓存。或者我做错了什么来包含这样的脚本。似乎问题出在 node_modules 脚本上。
提前致谢。
解决方案
推荐阅读
- javascript - 如何从 Axios 获取数组数据以将其转换为字符串?
- tableau-api - Tableau Prep Builder 连接到本地 SQL 数据库
- c++ - 最优 FSM 模式的使用
- android - 我可以在 Android 上使用 tensorflow/tflite 运行张量操作吗?
- javascript - 续集“对象”没有增量功能
- javascript - 一个非常简单的 d3 数据连接将新元素添加到错误的位置
- android - 我用两个按钮创建了我的自定义来电屏幕。如何让按钮接听并结束通话?
- python - 将数组附加到python中其他数组的每个元素
- c++ - 前向声明未定义类错误窗口
- javascript - 如何使用javascript从数组中按优先级获取票证总和