简体   繁体   English

每次我改变我正在开发的Firefox插件时,我是否必须使用`jpm run`?

[英]Do I have to use `jpm run` every time I change the Firefox add-on I'm developing?

I've gone over the Mozilla Developer Network " Getting Started (jpm) " guide to getting started with Firefox add-on development. 我已经浏览了Mozilla开发者网络“ 入门(jpm) ”指南,开始使用Firefox附加组件开发。

This guide suggests that to see the effects of changes that I make to my add-on's code I need to: 本指南建议,要查看我对附加组件代码所做的更改的影响,我需要:

  1. Close Firefox 关闭Firefox
  2. Rebuild the add-on. 重建附加组件。
  3. Run it in Firefox again. 再次在Firefox中运行它。

Do I really have to rebuild my package and run it a new instance of Firefox to see my changes? 我是否真的必须重建我的软件包并运行它的新Firefox实例来查看我的更改?

Is there an alternative way to refresh the add-on code from within the browser? 是否有另一种方法可以从浏览器中刷新附加代码?

You can combine jpm with the Extension Auto Installer add-on like this: 您可以将jpm与Extension Auto Installer加载项组合使用,如下所示:

jpm post --post-url http://localhost:8888/

Or using watchpost to automate the process: 或者使用watchpost自动化流程:

jpm watchpost --post-url http://localhost:8888/ 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM