Chrome extension template with
Preact, Tailwind CSS, Jest, Vite and TypeScript
![](https://badges.aleen42.com/src/chrome_extensions.svg)
![](https://badges.aleen42.com/src/preact.svg)
![](https://badges.aleen42.com/src/tailwindcss.svg)
![](https://badges.aleen42.com/src/jest_1.svg)
![](https://badges.aleen42.com/src/vitejs.svg)
![](https://badges.aleen42.com/src/typescript.svg)
![](https://badges.aleen42.com/src/eslint.svg)
![GitHub action badge](https://github.com/fell-lucas/chrome-ext-template-preact-windi-vite/actions/workflows/build.yml/badge.svg)
[![hits](https://hits.deltapapa.io/github/fell-lucas/chrome-ext-template-preact-windi-vite.svg)](https://hits.deltapapa.io)
![GitHub](https://img.shields.io/github/license/fell-lucas/chrome-ext-template-preact-windi-vite)
Table of Contents
Intro
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
All dependencies are constantly reviewed and updated to ensure the template is always using the latest and greatest features!
Installation
Procedures
- Run
npx degit fell-lucas/chrome-extension-template-preact-vite my-project
or click Use this template
on GitHub.
- Change
name
and description
in package.json => Auto synchronize with manifest
- Run
pnpm i
, yarn
or npm i
(check your node version >= 16)
- Run
pnpm dev
, yarn dev
or npm 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
or npm run build
.
Screenshots
New Tab
Popup
Dev Tools
Recommendations
VSCode Extensions
Inspired by
Jonghakseo @ Repo
and Vitesse Webext
License
Distributed under the MIT License.