chrome-extension-boilerplate-react-vite

Eng0AI 的头像作者 Eng0AI

带有 React、Vite 和 TypeScript 的 Chrome 扩展。

📖 中文导读:带有 React、Vite 和 TypeScript 的 Chrome 扩展。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: chrome-extension-boilerplate-react-vite description: Chrome Extension with React, Vite, and TypeScript.

Chrome Extension Boilerplate

Chrome Extension Boilerplate with React + Vite + TypeScript.

Tech Stack

  • Framework: React
  • Build Tool: Vite
  • Language: TypeScript
  • Package Manager: pnpm

Setup

1. Clone the Template

git clone --depth 1 https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite.git .

If the directory is not empty:

git clone --depth 1 https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template

2. Remove Git History (Optional)

rm -rf .git
git init

3. Install Dependencies

pnpm install

Build

pnpm build

Development

pnpm dev

Loading Extension

  1. Build the extension
  2. Open Chrome and go to chrome://extensions/
  3. Enable "Developer mode"
  4. Click "Load unpacked" and select the dist folder