How do I use `jpm` with webextension in Firefox?

二次信任 提交于 2020-01-13 03:15:12

问题


I'm starting a Firefox addon and from what I see:

  1. jpm is the tool to manage a Firefox addon ;
  2. WebExtensions are a new way to write Firefox extensions compatible with the extension API supported by Google Chrome and Opera ;
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!