- Clone repository.
cd rComments/sourceyarn install- Install dependencies (download yarn if needed)yarn build- This command creates a./distdirectory, copies over all static files to it, and executeswebpackto write script to it as well../distis 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/distdirectory.
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 --watchwhich 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.