Starter template for creating Chrome extensions with React, Webpack, and Tailwind CSS, featuring pre-configured settings for faster development.
Follow these steps to set up the development environment for your new extension.
- Node.js (recommended: Node v12 or higher)
- Clone the repository:
git clone https://github.com/syntax-error-1/chrome-extension-starter-kit.git
- Navigate to the cloned directory:
cd chrome-extension-starter-kit
- Install the dependencies:
npm install
To start the development server:
npm run dev
This command will bundle your extension using Webpack in development mode and watch for any changes you make.
To build the extension for production:
npm run build
This command will prepare your extension for deployment by bundling it in production mode.
- Open your browser and navigate to the extensions page (usually found at
chrome://extensions
). - Enable "Developer mode" at the top right corner.
- Click "Load unpacked extension" and select the
dist
folder in your project directory. This folder contains the build output from Webpack.
popup.jsx
: This is the React component for the popup UI of your extension.manifest.json
: Contains metadata and configuration settings for your extension.