- Run
npm install
to install the dependencies. - Run
npm start
for CI/CD in development. Runnpm start
at least once to build the app. - Load your extension on Chrome following:
- Access
chrome://extensions/
- Check
Developer mode
- Click on
Load unpacked extension
- Select the
build
folder.
- Access
All your extension's code is placed in the src
folder.
The boilerplate is already prepared to have a popup, an options page, a background page, and a new tab page (which replaces the new tab page of your browser). The content and popup pages have been modified for this homework. Webpack looks for index.js within these folders when building the app. Thus, content script is within the index.js of the Content folder. As this is a React extension, Popup is written in React and all implementations are done in Popup.js.