Home

Awesome

Preact Webext

A Vite powered WebExtension (Chrome, FireFox, etc.) starter template with Preact.

Credits

This boilerplate is a shameless fork of antfu/vitesse-webext. You can say that I have just forked, edited a few lines and pushed.

oops, I haven't even changed the Readme :p

Features

Pre-packed

WebExtension Libraries

Dev tools

Use the Template

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

If you don't have pnpm installed, run: npm install -g pnpm

npx degit piyushsuthar/preact-webext my-webext
cd my-webext
pnpm i

Usage

Folders

Development

pnpm dev

Then load extension in browser with the extension/ folder,

Build

To build the extension, run

pnpm build

And then pack files under extension.