yarnto install dependanciesyarn devto start running the fast development mode Webpack build process that bundle files into thedistfolderyarn add -D <package_name>to install new packages
- Open Chrome and navigate to
chrome://extensions/ - Toggle on
Developer modein the top right corner - Click
Load unpacked - Select the entire
distfolder
git initto 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,nameanddescription - Update
manifest.json, important fields includeversion,nameanddescription - Update
webpack.commmon.js, the title in thegetHtmlPluginsfunction should be your extension name
yarn buildto generate a minimized production build in thedistfolder- ZIP the entire
distfolder (e.g.dist.zip) - Publish the ZIP file on the Chrome Web Store Developer Dashboard!
- Folders get flattened, static references to images from HTML do not need to be relative (i.e.
icon.pnginstead of../static/icon.png) - Importing local ts/tsx/css files should be relative, since Webpack will build a dependancy graph using these paths
- Update the manifest file as per usual for chrome related permissions, references to files in here should also be flattened and not be relative