Closed CortexPE closed 1 year ago
For now, you can not use dev
build with Firefox and you should only run firefox build after the production builds. This is a missing feature of @crxjs/vite-plugin
. As soon as the https://github.com/crxjs/chrome-extension-tools/pull/790 is npm published (merged but not published), I will add support for Firefox MV3 production
build support. related https://github.com/sinanbekar/browser-extension-react-typescript-starter/issues/61.
I am closing this but feel free to open a issue for other problems.
Error messages:
Popup:
Steps to reproduce:
npm run dev
to builddist
and startvite
npm run firefox-mv2-build
to builddist-firefox-v2
from HMR-enabled chromedist
$PROJECT_DIR/dist-firefox-v2/manifest.json
viaabout:debugging#/runtime/this-firefox
>Load Temporary Add-on...
about:debugging#/runtime/this-firefox
>[Dev] Browser Extension TypeScript & React Starter
>Inspect