A WXT powered WebExtension (Chrome, FireFox, etc.) starter template.
- ⚡️ Instant HMR - use Vite on dev (no more refresh!)
- 🥝 Vue 3 - Composition API,
<script setup>
syntax and more! - 🌈 UnoCSS - The instant on-demand Atomic CSS engine.
- 🦾 TypeScript - type safe
- 📦 Components auto importing
wxt
- Next-gen Web Extension Framework
unplugin-auto-import
- Directly usebrowser
and Vue Composition API without importingunplugin-vue-components
- components auto importvite-plugin-vue-devtools
- Unleash Vue Developer Experience
- VueUse - collection of useful composition APIs
- UnoCSS - the instant on-demand Atomic CSS engine
- Use Composition API with
<script setup>
SFC syntax - ESLint with @antfu/eslint-config, single quotes, no semi
- TypeScript
- pnpm - fast, disk space efficient package manager
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 elonehoo-starter/wxt my-webext
cd my-webext
pnpm i
pnpm dev
For Firefox developers, you can run the following command instead:
pnpm dev:firefox
To build the extension, run
pnpm build
This template is originally made for the antfu/vitesse-webext browser extension.