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

I reviewed the Mozilla Getting Started Network (jpm) "to get started on the Firefox extension.

This guide shows that to view the effects of the changes I make in my add-on code, I need:

  • Close Firefox
  • Rebuild the add-in.
  • Launch it in Firefox again.

Do I need to rebuild my package and run it as a new instance of Firefox to see my changes?

Is there an alternative way to update add-on code from a browser?

+5
source share
1 answer

You can combine jpm with the Extension Auto Installer add-in as follows:

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

Or using watchpost to automate the process:

 jpm watchpost --post-url http://localhost:8888/ 
+7
source

Source: https://habr.com/ru/post/1236468/


All Articles