entrptaher / playground-extension-boilarplate

⭐ Extension example for Content script on page with react and webpack ⭐

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal chrome extension boilarplate.

Overview

On click on browser icon, the background will execute the content-script on current page. It will load fontawesome as well.

Once you click the icon again, it will try to remove all references, and the page will reload.

Usage

Clone the repo, install dependencies and start building.

yarn 
yarn run start

It will generate unpacked extension on build folder which you can install on chrome extension page.

Structure

The source structure looks like below,

src
├── js
|  ├── background
|  |  └── index.jsx
|  └── content-script
|     ├── fontawesome.jsx
|     ├── index.jsx
|     └── styles
├── manifest.js
└── static
   └── img
      ├── logo.png
      └── logo.svg

The build structure looks like below,

build
├── fonts
|  ├── fa-regular-400.eot
|  ├── ...
├── img
|  └── logo.png
├── js
|  ├── background.js
|  └── content-script.js
└── manifest.json

About

⭐ Extension example for Content script on page with react and webpack ⭐

License:MIT License


Languages

Language:JavaScript 88.1%Language:SCSS 11.9%