-
I tried using browser:edge but it still opened chrome |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
https://wxt.dev/guide/development.html#configure-browser-startup WXT uses You can do this by using the // ~/web-ext.config.ts or <root>/web-ext.config.ts
import { defineRunnerConfig } from 'wxt';
export default defineRunnerConfig({
binaries: {
// Customize which binary to use for a specific browser
edge: "/path/to/edge"
},
}); I'll add docs to this page to explain this. |
Beta Was this translation helpful? Give feedback.
https://wxt.dev/guide/development.html#configure-browser-startup
WXT uses
web-ext
to open the browser in dev mode. It only knows where Chrome and Firefox are located by default. When using a different browser, you have to tellweb-ext
where that browser's binary or executable is located, otherwise it will open chrome by default (since most browsers are chromium and will behave the exact same).You can do this by using the
runner
config insidewxt.config.ts
if you want to commit the config, or in a separate, gitignoredweb-ext.config.ts
file if not.