用途:这是一个 Chrome 扩展(浏览器插件)的脚手架模板,帮助开发者用 React、Vite 和 TypeScript 快速搭建扩展项目。
主要能力:基于 React 构建界面,使用 Vite 作为构建工具,使用 TypeScript 编写代码,使用 pnpm 作为包管理器。
使用方式:先克隆模板,命令为 git clone --depth 1 https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite.git . ;若目录非空,则克隆到 _temp_template 再移动文件,相关命令为 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。可选地删除 Git 历史:rm -rf .git 与 git init。安装依赖:pnpm install。构建:pnpm build。开发:pnpm dev。加载扩展:先构建,然后打开 Chrome 访问 chrome://extensions/,启用“开发者模式”,点击“加载已解压的扩展程序”并选择 dist 文件夹。
适用场景:需要以 React、Vite、TypeScript 技术栈开发 Chrome 扩展的项目。
限制:资料未提供其他功能、收费、价格或平台信息。