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></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:
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>
- Run
npx degit fell-lucas/chrome-extension-template-preact-vite my-project
or clickUse this template
on GitHub. - Change
name
anddescription
in package.json => Auto synchronize with manifest - Run
pnpm i
,yarn
ornpm i
(check your node version >= 16) - Run
pnpm dev
,yarn dev
ornpm run dev
to watch files and rebuild with any changes - Load Extension on Chrome
- Open - Chrome browser
- Access - chrome://extensions
- Check - Developer mode
- Find - Load unpacked extension
- Select -
dist
folder in this project (after dev or build)
- If you want to build without watching, run
pnpm build
,yarn build
ornpm 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
- vscode-eslint
- prettier-vscode
- vscode-tailwindcss
- vscode-coverage-gutters
- vscode-jest
- vscode-jest-runner
Inspired by <br>
Jonghakseo @ Repo <br> and Vitesse Webext
License
Distributed under the MIT License.