You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn start-chrome // same as web app but is served from ./dist/dist-chrome
17
+
yarn build-chrome // builds for chrome and will be available in ./builds/chrome
11
18
```
19
+
##### Mozilla Firefox extension
12
20
13
-
In order to live test the extension copy the `manifest.json` file manually to `./dist` folder. Keep making changes and the parcel takes care of the rest.
21
+
```
22
+
yarn start-firefox // same as web app but is served from ./dist/dist-firefox
23
+
yarn build-firefox // builds for firefox and will be available in ./builds/firefox
24
+
```
14
25
15
-
**🔴 Changes to the manifest.json must be made to the one in root folder and dist folder should be untouched.**
26
+
`manifest.json` files are maintained sperately for firefox and chrome in their respective folders.
27
+
In order to live test the extension copy the `manifest.json` file manually to respective `./dist/{dist-chrome|dist-firefox}` folder. Keep making changes and the parcel takes care of the rest.
28
+
29
+
**🔴 Changes to the manifest.json must be made to the respective folder and dist folder should be untouched. Instead manually copy if you are testing it locally**
16
30
17
31
----
18
32
@@ -21,8 +35,11 @@ Run `yarn build`. This time no need to copy manifest file manually. Everything i
21
35
22
36
---
23
37
24
-
### Procedure to load extension
25
-
Visit `chrome://extension`, click on `load unpacked` and select dist folder with `manifest.json` file in it and you are good to go.
38
+
### Procedure to load extension for chrome
39
+
Visit `chrome://extension` in Google Chrome, click on `Load unpacked` and select build/dist folder with `manifest.json` file in it and you are good to go.
40
+
41
+
### Procedure to load extension for firefox
42
+
Visit `about:debugging#addons` in Mozilla Firefox, click on `Load Temporary Add-on` and select the firefox build/dist folder with `manifest.json` in it and you are good to go.
26
43
27
44
- You can test live as you develop by keeping the parcel server running.
28
45
- If you want to inpect things, you can right click like a normal webpage on the dropdown.
0 commit comments