This repository is a starting point for building and distributing extensions for Chrome and Firefox browsers.
It is built with TypeScript/JavaScript, Webpack, and React.
Other dependencies minimal so you can bring your own tools.
Note:
This boilerplate uses Manifest V2, which you will see warnings about from Chrome. Firefox is still implementing V3, so in order to produce extensions for both browsers this project will continue to use V2 until Firefox has added support.
For more info see:
yarn install
yarn start
With the development server running, you can now load the plugin in the browser.
- Open Chrome
- Navigate to
chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load Unpacked"
- Navigate to repo/build/chrome
- Open Firefox
- Navigate to to
about:debugging
- Click "This Firefox" option
- Click "Load Temporary Add-on" button
- Navigate to repo/build/chrome and select any file
- The
build
directory contains the webpack built application. You can use this to load the plugin to Chrome for development. - The
dist
directory contains the zip files that are generated by runningyarn package
. See Package for distribution below.
In order to build for Firefox, you must first get your web-ext credentials. See Getting started with web-ext.
Configure environment variables:
export WEB_EXT_API_KEY=xxx;
export WEB_EXT_API_SECRET=xxx
Sign and build plugin:
yarn package
See INSTALL.md for dist install instructions