Home

Awesome

<div align="center"> <img src="public/icon-128.png" alt="logo"/> <h1> Chrome extension template with <br/>Preact, Tailwind CSS, Jest, Vite and TypeScript</h1>

GitHub action badge hits GitHub

</div>

Table of Contents

Intro <a name="intro"></a>

This template was made with a goal to reduce as much as possible the extension's bundle size, while also having a blazing fast build speed and overall great developer experience with Vite.

The chunk sizes when cloning and building the template: image

Features <a name="features"></a>

All dependencies are constantly reviewed and updated to ensure the template is always using the latest and greatest features!

Installation <a name="installation"></a>

Procedures <a name="procedures"></a>

  1. Run npx degit fell-lucas/chrome-extension-template-preact-vite my-project or click Use this template on GitHub.
  2. Change name and description in package.json => Auto synchronize with manifest
  3. Run pnpm i, yarn or npm i (check your node version >= 16)
  4. Run pnpm dev, yarn dev or npm run dev to watch files and rebuild with any changes
  5. Load Extension on Chrome
    1. Open - Chrome browser
    2. Access - chrome://extensions
    3. Check - Developer mode
    4. Find - Load unpacked extension
    5. Select - dist folder in this project (after dev or build)
  6. If you want to build without watching, run pnpm build, yarn build or npm run build.

Screenshots <a name="screenshots"></a>

New Tab <a name="newtab"></a>

<img src="https://user-images.githubusercontent.com/47724710/163656227-d3ab614f-9549-4c86-a63c-196b6e30ad17.png" width='50%' />

Popup <a name="popup"></a>

<img src="https://user-images.githubusercontent.com/47724710/163656209-be45a8fb-aecc-437b-b700-0f0f5d9742ca.png" width='75%' />

Dev Tools <a name="devtools"></a>

<img src="https://user-images.githubusercontent.com/47724710/163656187-7424c39f-d4ad-4cf7-971d-70f86da1e06f.png" width='50%' />

Recommendations <a name="recommends"></a>

VSCode Extensions

Inspired by <br>

Jonghakseo @ Repo <br> and Vitesse Webext

License

Distributed under the MIT License.