yarn
to install dependanciesyarn dev
to start running the fast development mode Webpack build process that bundle files into thedist
folderyarn add <package_name>
to install new packages
- Open Chrome and navigate to
chrome://extensions/
- Toggle on
Developer mode
in the top right corner - Click
Load unpacked
- Select the entire
dist
folder
git init
to start a new git repo for tracking your changes, do an initial base commit with all the default files- Update
package.json
, important fields includeauthor
,version
,name
anddescription
- Update
manifest.json
, important fields includeversion
,name
anddescription
- Update
webpack.commmon.js
, the title in thegetHtmlPlugins
function should be your extension name
yarn build
to generate a minimized production build in thedist
folder
- Wasn't able to share functions between
background.ts
& other files (Only happes withbackground.ts
) so either have functions in the file itself or create a separate file that onlybackground.ts
uses. - Update the manifest file as per usual for chrome related permissions
- Offical Chrome Extension docs