12 |
Hello, {this.state.name}!
13 |

14 |
15 | );
16 | }
17 | }
18 |
19 | export default GreetingComponent;
20 |
--------------------------------------------------------------------------------
/src/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "manifest_version": 3,
3 | "name": "Chrome Extension with React & Webpack",
4 | "description": "A chrome extension boilerplate built with React 17, Webpack 5, and Webpack Dev Server 4",
5 | "options_page": "options.html",
6 | "background": { "service_worker": "background.bundle.js" },
7 | "action": {
8 | "default_popup": "popup.html",
9 | "default_icon": "icon-34.png"
10 | },
11 | "chrome_url_overrides": {
12 | "newtab": "newtab.html"
13 | },
14 | "icons": {
15 | "128": "icon-128.png"
16 | },
17 | "content_scripts": [
18 | {
19 | "matches": ["http://*/*", "https://*/*", "