Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@leo-millenial/vite-vue-bex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue 3 Chrome Extension Template
π·πΊ Π ΡΡΡΠΊΠΎΠ΅ ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅ | πΊπΈ English
A modern template for creating Chrome extensions using Vue 3, TypeScript, Vite, and UnoCSS.
Install template
npx degit leo-millenial/vite-vue-bex <my-project-name>
π Features
- β‘ Fast development with Vite
- π― Vue 3 with Composition API and
<script setup>
- π· TypeScript for type safety
- π¨ UnoCSS for atomic CSS styling
- πΈ DaisyUI for beautiful UI components
- π§ webext-bridge for script communication
- π¦ webextension-polyfill for cross-browser compatibility
- π§ͺ Vitest for testing
- π Hot Module Replacement in development mode
π Project Structure (FSD)
src/
βββ app/
β βββ background/ # Background scripts
β βββ index.ts
βββ content/ # Content scripts
β βββ content.ts
βββ pages/
β βββ popup/ # Popup interface
β β βββ index.html
β β βββ index.vue
β β βββ main.ts
β βββ welcome/ # Welcome page
β βββ index.html
β βββ index.vue
β βββ main.ts
βββ shared/ # Shared utilities
β βββ config/
βββ public/
βββ images/ # Extension icons
π Tech Stack
Core Dependencies
- Vue 3 - Progressive JavaScript framework
- TypeScript - Typed JavaScript
- Vite - Fast build tool and dev server
- UnoCSS - Atomic CSS engine
- DaisyUI - Tailwind CSS component library
Extensions & Plugins
- @crxjs/vite-plugin - Vite plugin for Chrome extensions
- @vitejs/plugin-vue - Vue plugin for Vite
- webext-bridge - Extension script communication
- webextension-polyfill - Cross-browser API
Development Tools
- Vitest - Fast testing framework
- @vue/test-utils - Vue component testing utilities
- ESLint - JavaScript/TypeScript linter
- Prettier - Code formatter
π Quick Start
Using npm
# Create new project
npm create @leo-millenial/vite-vue-bex my-extension
cd my-extension
# Install dependencies
npm install
# Start development
npm run dev
Using pnpm
# Create new project
pnpm create @leo-millenial/vite-vue-bex my-extension
cd my-extension
# Install dependencies
pnpm install
# Start development
pnpm run dev
Using yarn
# Clone the template
npx degit your-username/vue3-chrome-extension-template my-extension
cd my-extension
# Install dependencies
pnpm install
# or
npm install
# or
yarn install