TechGeorgii / chrome-extension-boilerplate-react-typescript

Chrome Extension Boilerplate with React, TypeScript and Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome Extension Boilerplate with React, TypeScript and Webpack

documented Updated license: MIT

This repository aims to provide a simple and lightweight boilerplate project for writing chrome extensions using React and TypeScript.

🔥 Features

  • React 18
  • Webpack 5
  • TypeScript
  • Manifest V3

💾 Installation

Clone the repository using following command in the terminal:

git clone https://github.com/harshal-limaye/chrome-extension-boilerplate-react-typescript.git <PROJECT_NAME>

Next, navigate to the newly cloned repository directory and run following command to install the dependencies

npm install

💻 Usage

Use following command to run webpack in watch mode. It'll automatically reload the build if any changes are made to the files. It also generates source maps to aid the development process.

npm start

Use following command to create a production ready build.

npm run build

🔌Loading extension in Chrome

To load the extension in chrome

  1. Navigate to chrome://extensions/
  2. Turn on Developer Mode using option located on top right hand side corner of page.
  3. Click on Load unpacked button. This will open file browser.
  4. Select the dist folder from the cloned repository.

And that's it! Happy coding...😎

✏️ Resources

About

Chrome Extension Boilerplate with React, TypeScript and Webpack

License:MIT License


Languages

Language:TypeScript 51.0%Language:JavaScript 49.0%