A vanilla Astro template with build hot reload to quickstart browser extensions. The template supports both ManifestV2 and ManifestV3
If you want to use any frontend framework (ReactJS, Vue, etc) you can follow AstroJS guides for that
To edit the manifests, popup entry point(by default is index.html generated by astro), background scripts, etc. You can do so in the public folder under v2 and v3
- Hot reload for dist folder
- Parallel builds for ManifestV2 and ManifestV3
- Unified UI for ManifestV2 and ManifestV3
Clone the project
git clone https://github.com/latinrev/astro-browser-extension-template.gitGo to the project directory
cd astro-browser-extension-templateInstall dependencies
npm installStart the hot reload
Once the project is up and running you will see your build results inside dist/v2 dist/v3 which then in turn you can point your browsers to these directories
npm run build:reloadHot reload builds for both ManifestV2 and ManifestV#
npm run build:reloadBuilds for both ManifestV2 and ManifestV#
npm run buildOnly builds for ManifestV2
npm run buildV2Only builds for ManifestV3
npm run buildV3Easter egg, Hola Midu!
Contributions are always welcome!