Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.59 KB

CONTRIBUTING.md

File metadata and controls

55 lines (43 loc) · 1.59 KB

Contributing

Suggestions and pull requests are highly encouraged!

Workflow

  1. Clone the project:
git clone https://github.com/jsdelivr/extension-chrome.git
cd extension-chrome
npm install
  1. When working on the extension or checking out branches, use this to have it constantly build your changes:
npm run watch # Listen for file changes and automatically rebuild
  1. Then load or reload it into the browser to see the changes (this does not happen automatically).

Loading into the browser

Once built, load it in the browser of your choice:

Chrome Firefox
  1. Open chrome://extensions;
  2. Check the Developer mode checkbox;
  3. Click on the Load unpacked extension button;
  4. Select the folder extension-chrome/build.
  1. Open about:debugging#addons;
  2. Click on the Load Temporary Add-on button;
  3. Select the file extension-chrome/build/manifest.json.
Or you can use this command to have Firefox automatically load and reload it through web-ext run:

npm run watch:firefox

Many thanks to sindresorhus for the inspiration with this contributing guide