- Clone repository.
cd rComments/source
yarn install
- Install dependencies (download yarn if needed)yarn build
- This command creates a./dist
directory, copies over all static files to it, and executeswebpack
to write script to it as well../dist
is the directory that Chrome/Firefox will read from when testing the extension.
Load in Chrome
- Go to chrome://extensions
- Make sure "Developer Mode" is checked
- Click "Load Unpacked Extension"
- Select repo's
rComments/src/dist
directory.
Load in Firefox
- Follow instructions here: https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/
Done! At this point the browser will be using the addon using the files in rComments/src/dist
- Run
yarn dev
- Will runwebpack --watch
which will write any changes to .js files to the dist folder (or complain if there are issues). - After doing a change, you must click "reload" in the browser extension tools to update the extension on the browser. After that your changes will live on reddit.com.