使用ngrok旁载应用程序无法正常工作
Repro步骤…
- 我通过团队yeoman生成器 (通过npm安装)创build了一个团队选项卡应用程序。
- 我遵循使用ngrok的本地托pipe选项。
- 我用
./ngrok http 3007 --host-header=localhost:3007
(仍在运行)启动ngrok,./ngrok http 3007 --host-header=localhost:3007
生成的url复制/粘贴到我的manifest.json
- 我开始了另一个terminal会议,跑了一大
gulp serve
- 我通过
gulp manifest
创build了我的包 - 我试图sideload生成的zip并获取错误消息:
Error while reading manifest.json: Failed to find icon "https://xxxxxxxx.ngrok.io/assets/tab-44.png" file in the package Failed to find icon "https://xxxxxxxx.ngrok.io/assets/tab-88.png" file in the package
(子域编辑)
这是我已经确认/debugging…
- 去
https://xxxxxxxx.ngrok.io/assets/tab-44.png
和https://xxxxxxxx.ngrok.io/assets/tab-88.png
在浏览器中工作正常。 我看到默认的笑脸图标,并在ngrokterminal和Web界面中查看请求。 - 我看不到任何来自试图在ngrok界面中获取图标的请求。
- 我也testing过,我可以从手机上看到图标。
- 我已经解压缩生成的包,它只包含
manifest.json
与正确的ngrokurl。 - 我的客户启用了侧边加载应用程序。
- 我是团队的所有者,我试图把这个应用程序转化为。
有任何想法吗? 谢谢!
大纲和颜色是相对于PNG图标的文件path。 请将这两个图标(tab-44.png&tab-88.png)与manifest.json文件一起作为包的一部分。