Reputation: 1221
I'm trying to run this example. But it won't run.
I've the latest version 45, along with JPM installed. From the command line if I give "jpm run"
it gives couple of errors like name
should be in all small letters and no content script specified etc.
How to make it run?
I want some options popup when it's browser icon is clicked. But this part as in package.json is n't working:
"browser_action": {
"default_icon": "icons/beasts-32.png",
"default_title": "Beastify",
"default_popup": "popup/choose_beast.html"
},
Upvotes: 0
Views: 54
Reputation: 29012
WebExtensions don't use JPM.
You just pack them into a ZIP file and rename it to XPI and that's it. You can also use the web-ext
command-line tool to do it (web-ext build
).
For testing your extension, you don't even need to pack it - just open about:debugging
in your Firefox, click "Load add-on temporarily" and select your extension's main folder.
See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Packaging_and_installation for details.
Upvotes: 1