- Checkout the copied repository to your local machine eg. with
git clone https://github.com/Swetrix/swetrix-browser.git
- Run
npm install
to install all the required dependencies. - Run
npm run build
The build step will create the distribution
folder, this folder will contain the generated extension.
Using web-ext is recommened for automatic reloading and running in a dedicated browser instance. Alternatively you can load the extension manually (see below).
- Run
npm install --global web-ext
(only only for the first time). - Run
npm run watch
to watch for file changes and build continuously. - In another terminal, run
web-ext run
for Firefox orweb-ext run -t chromium
for Chrome. - Check that the extension is loaded by opening it's popup window.
You can also load the extension manually in Chrome or Firefox.