This is a template for creating a browser extension using Webpack and Tailwind CSS. The template is designed to help you get started with building browser extensions for Chrome and Firefox.
This template provides a starting point for building browser extensions for Chrome and Firefox. The template includes Webpack for bundling the extension files and Tailwind CSS for styling the extension.
Below are the tools and libraries required to build and run the browser extension.
- npm (Node Package Manager)
- Webpack
- Tailwind CSS
- Clone the repository and navigate to the project directory:
- Install dependencies:
npm install
-
Chrome: Run the following command for development with hot reload:
npm run start:chrome
This will watch for changes and rebuild the extension automatically.
-
Firefox: Run the following command for development with hot reload:
npm run start:firefox
-
Chrome:
npm run build:chrome
This command will build the extension optimized for production in the
build/chromedirectory. -
Firefox:
npm run build:firefox
This command will build the extension optimized for production in the
build/firefoxdirectory.
After building the extension, you can load it in your browser by following the steps below:
Open the Extension Management page by navigating to chrome://extensions.
- The Extension Management page can also be opened by clicking on the Chrome menu, hovering over
More Toolsthen selectingExtensions. - Enable Developer Mode by clicking the toggle switch next to
Developer mode. - Click the
Load unpackedbutton and select the extension directory. - The extension will be loaded into the browser.
Open the Extension Management page by navigating to about:debugging.
- Click the
This Firefoxbutton and selectLoad Temporary Add-on.... - Open the extension directory and select any file inside the extension.
- The extension will be loaded into the browser.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to contribute to this project.