Closed Yakiyo closed 8 months ago
The plugin accepts a browser
option:
I could have sworn this was documented somewhere... but I guess not? I couldn't find it in the docs either.
// vite.config.ts
export default defineConfig({
plugins: [
WebExtension({
browser: process.env.TARGET_BROWSER,
}),
],
});
Then run:
# Start chrome
vite
# Start Firefox
TARGET_BROWSER=firefox vite
// vite.config.ts export default defineConfig({ plugins: [ WebExtension({ browser: process.env.TARGET_BROWSER, }), ], });
that really helps. thanks a lot
Hi, during development i use
pnpm dev
command which opens up a new chrome instance for testing the extension. How would i configure it to open up firefox instead of chrome? i tried searching through the docs but couldn't find any thing on changing the browser. any help would be appreciated