WebExtension Vite Starter
A Vite powered WebExtension (Chrome, FireFox, etc.) starter template.
- Windi CSS - next generation utility-first CSS framework
- TypeScript
- pnpm - fast, disk space efficient package manager
- tsup - Zero config TypeScript bundler powered by esbuild
- esno - TypeScript / ESNext node runtime powered by esbuild
- npm-run-all - Run multiple npm-scripts in parallel or sequential
Create a repo from this template on GitHub.
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 antfu/vitesse-webext my-webext
cd my-webext
pnpm i
views - frontend for the extension (popup and options).
src - background scripts and content scripts.
manifest.ts - manifest for the extension.
extension - extension package root, also holds assets.
scripts - development helper scripts.
Then load extension in browser with the extension/ folder,
To build the extension, run
And then pack files under extension.

This template is originally made for the volta.net browser extension.
This is a variant of Vitesse, check out the full variations list.