Skip to content

Commit f526cac

Browse files
Add web extension specific advice on building. Fixes #751
1 parent 3cc4034 commit f526cac

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ For more info, see:
2020

2121

2222
## Development
23+
24+
### Web Extension Development
25+
26+
Since Firefox 57, this extension can now be run without any of the legacy components that were previously needed.
27+
28+
1. Install web-ext with npm
29+
2. cd webextension; web-ext run -f Nightly
30+
31+
This will work in other builds of Firefox however certain features won't work and you will need to manually flip preferences to enable containers. All other sections of this guide talk about using the legacy setup with jpm.
32+
33+
34+
## Legacy Development
35+
2336
### Development Environment
2437

2538
Add-on development is better with [a particular environment](https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment). One simple way to get that environment set up is to install the [DevPrefs add-on](https://addons.mozilla.org/en-US/firefox/addon/devprefs/). You can make a custom Firefox profile that includes the DevPrefs add-on, and use that profile when you run the code in this repository.
@@ -44,7 +57,6 @@ Release & Beta channels do not allow un-signed add-ons, even with the DevPrefs.
4457

4558
Whilst this is still using legacy code to test you will need the following in your profile:
4659

47-
4860
Change the following prefs in about:config:
4961

5062
- extensions.legacy.enabled = true

0 commit comments

Comments
 (0)