集成 Vite5、Vue3、Typescript5、AntdV4 等基础模块实现的 Chrome V3 插件模板
- 点击
Use this template
创建新的仓库; - 执行
git clone <your-repo-url>
克隆到本地;
执行 npm install
安装依赖;
- 执行
npm run dev
启动项目; - 打开
http://localhost:3000
查看效果;
PS: 仅支持调试 Popup, 或将 Content 挂在到 Popup 进行调试但部分功能受限;
- 执行
npm run build:watch
构建项目; - 打开
chrome://extensions
加载已解压的扩展程序; - 选择
<root-dir>/build
文件夹;
PS: 修改代码后可以自动构建并更新 Chrome 扩展程序, 减少重复执行构建命令;
- 执行
npm run build
构建项目; - 打开
chrome://extensions
打包扩展程序; - 选择
<root-dir>/build
文件夹;