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

436 Views Asked by At

I've gone over the Mozilla Developer Network "Getting Started (jpm)" guide to getting started with Firefox add-on development.

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
  2. Rebuild the add-on.
  3. Run it in Firefox again.

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

Is there an alternative way to refresh the add-on code from within the browser?

1

There are 1 best solutions below

0
On BEST ANSWER

You can combine jpm with the Extension Auto Installer add-on like this:

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

Or using watchpost to automate the process:

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