问题
I'm starting a Firefox addon and from what I see:
- jpm is the tool to manage a Firefox addon ;
- WebExtensions are a new way to write Firefox extensions compatible with the extension API supported by
Google Chrome
andOpera
; - yet I can't find if
jpm
is usable with WebExtensions.
Question
Is it possible to develop a WebExtensions
using jpm
?
回答1:
Nope. They’re two separate ways of developing Firefox add-ons.
Just to add a little more detail, if you’re writing an add-on you want people to use now, you probably want to go with jpm
. WebExtensions are still being implemented, and while we at Mozilla would love to hear your input on using the API, they’re not ready for production use at this point (Late September, 2015). If you do want to write a WebExtension, I’ve written a tutorial that should help you get started.
回答2:
You could try firefox-addon-skeleton for WebExtensions add-on quick-start.
来源:https://stackoverflow.com/questions/32670794/how-do-i-use-jpm-with-webextension-in-firefox