This project containes a minimal setup for developing a performant and well structured browser extension. The extension contains a demonstration counter that is displayed on the popup and options pages as well as any open tab.
install dependencies
- npm install
Transpile the code
- npm run dev (only transpiles the code)
- npm run watch (transpiles and watches for code changes)
- Go to: chrome://extensions
- Toggle: "developer mode" on.
- Click on: "Load unpacked"
- Select the newly created folder "build" from the project folder.
- Thats it.
- Go to: about:debugging
- Select: "This Firefox" or for old version "Enable add-on debugging"
- Click on: "Load Temporary Add-on…"
- Open the newly created folder "build" from the project folder, and choose the "manifest.json" file.
- Thats it.