We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c01e584 commit e9bba47Copy full SHA for e9bba47
readme.md
@@ -14,7 +14,26 @@ npm install --save webext-dynamic-content-scripts
14
15
### Plain files
16
17
-1. Include the file `dist/webext-dynamic-content-scripts.js` in your manifest.json, both as a `background` script and `content_script`.
+1. In your `manifest.json`, include the file as background and as content script:
18
+
19
+ ```js
20
+ {
21
+ "background": {
22
+ "scripts": [
23
+ "dist/webext-dynamic-content-scripts.js"
24
+ ]
25
+ },
26
+ "content_scripts": [
27
28
+ "js": [
29
+ "dist/webext-dynamic-content-scripts.js",
30
+ "content.js"
31
32
+ }
33
34
35
+ ```
36
37
2. In your background script **only**, run `injectContentScripts()`
38
39
### With a bundler
0 commit comments