Skip to content
/ boot-webext Public template

Chrome extension template with Vue 3 + Typescript

License

Notifications You must be signed in to change notification settings

kirklin/boot-webext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-webext

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

English | 简体中文

Features

  • ⚡️ Instant HMR: Utilize Vite's fast development server for instant Hot Module Replacement, eliminating the need for manual refreshing.
  • 🥝 Vue 3: Harness the power of Vue 3 with Composition API, <script setup> syntax, and more.
  • 💬 Effortless Communications: Seamlessly communicate between different contexts using the combination of webext-bridge and VueUse storage.
  • 🌈 UnoCSS: Leverage the on-demand Atomic CSS engine, UnoCSS, to style your components efficiently.
  • 📜 Chinese Font Preset: Includes a preset for Chinese fonts 🇨🇳
  • 🦾 TypeScript: Ensure type safety and enhanced development experience with TypeScript integration.
  • 📦 Components Auto Importing: Automatically import components for smoother development workflow.
  • 🌟 Icons: Access icons directly from any iconset, enhancing your design process.
  • 🖥 Content Script: Utilize the power of Vue even within content scripts.
  • 🌍 WebExtension: Develop isomorphic extensions that work across browsers like Chrome, Firefox, and others.
  • 📃 Dynamic manifest.json with Full Type Support: Craft your manifest.json with flexibility and full type support.

Coding Style

Recommended IDE Setup

Try it now!

GitHub Template

Create a repo from this template on GitHub.

Clone to local

npx degit kirklin/boot-webext my-webext
cd my-webext
pnpm i

Usage

Development

Just run and install dependencies, then you can start to develop your extension.

pnpm run dev

Build

To build the App, run

pnpm run build

And you will see the generated file in dist that ready to be served.