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
Before create any pull requests, please open a issue explaining the situation
4
-
5
-
- Be sure to follow the eslint rules and run the prettier
6
-
- Be sure **before open the pull request**, to test the existent code and/or create tests if you made a new feature or
7
-
changed a already existing one.
8
-
9
-
## Issues
10
-
11
-
Should be in the format:
12
-
13
-
```text
14
-
**Type:**
15
-
- [x] bug
16
-
- [ ] feature
17
-
- [ ] enhancement
18
-
- [ ] question
19
-
20
-
**Environment:**
21
-
- OS: Windows 10
22
-
- Version: 0.6.0
23
-
24
-
**Going to open a PR:**
25
-
- [x] yes
26
-
- [ ] no
27
-
28
-
**Description:**
29
-
The messages aren't showing on the console
30
-
```
31
-
32
-
## Pull Requests
33
-
34
-
- On the description of the pull request set the issue id for closing it:
35
-
36
-
```text
37
-
Now the messages are showing. Closes #41
38
-
```
39
-
40
-
## Following the guideline
41
-
42
-
Please follow the above rules, so the repo can stay consistent and easy for everyone find questions and
43
-
already resolved stuff. Be aware that your PR can be denied if you don't follow then :cry:
44
-
45
-
## Running this project locally
46
-
47
-
### Building and Testing
3
+
## Building and Testing in Browser
48
4
49
5
Inside this repository have an example plugin, so you can test and see it working
50
6
After cloning the repository, run:
@@ -53,21 +9,29 @@ After cloning the repository, run:
53
9
npm run build
54
10
```
55
11
56
-
And then run:
12
+
And then run:
57
13
14
+
**Chrome:**
58
15
```bash
59
-
npm run start:sample
16
+
npm run start:sample:chrome
60
17
```
61
18
62
-
This will make the webpack run in watch mode for the sample plugin source and output the built files on the "dist"
63
-
directory.
64
-
Load the extension **(the files in "sample/dist" directory)** using the "load unpacked extension", open a
65
-
new tab in any site and open the developer panel on it. Watch the dev. tools console tab, and do some changes on
66
-
the background or content script. Voila!
19
+
**Firefox:**
20
+
```bash
21
+
npm run start:sample:firefox
22
+
```
23
+
24
+
This will make the webpack run in watch mode for the sample plugin source and output the built files on the "dist" directory.
25
+
Load the extension **(the files in "sample/dist" directory)** using the "load unpacked extension", open a new tab in any site and open the developer panel on it. Watch the dev. tools console tab, and do some changes on the background or content script. Voila!
67
26
68
27
**Note:**
69
-
You must have both background and content scripts for this plugin to work, and they must be specified in separate `entry` chunks
70
-
in your webpack config.
28
+
You must have both background and content scripts for this plugin to work, and they must be specified in separate `entry` chunks in your webpack config.
29
+
30
+
The reloading script will be injected only on the main entries chunks (in background and content script). Any other chunks will be ignored.
31
+
32
+
33
+
## Linting and Unit Tests
34
+
35
+
In order to lint, simply use the `npm run lint` command. Similarly, to format with Prettier, use the `npm run format` command.
71
36
72
-
The reloading script will be injected only on the main entries chunks (in background and content script). Any other
73
-
chunks will be ignored.
37
+
In order to run tests, you can use the `npm run test` command.
This is a webpack plugin that allows you to bring hot reloading functionality to WebExtensions, essentially `webpack-dev-server`, but for WebExtensions.
34
+
This is a webpack plugin that allows you to bring hot reloading functionality to WebExtensions, essentially `webpack-dev-server`, but for (WebExtensions)[https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions].
35
35
36
36
This is a fork from [`webpack-extension-reloader`](https://github.com/rubenspgcavalcante/webpack-extension-reloader), maintained and updated by the team here at Simplify. The goal here is to continue to support the latest version of webpack (`webpack-extension-reloader` only supports webpack v4) while adding new improvements (i.e. HMR).
37
37
@@ -47,7 +47,7 @@ Add `webpack-ext-reloader` to the plugins section of your webpack configuration
47
47
For outputing not only the `manifest.json` but other static files too, use `CopyWebpackPlugin`.
0 commit comments