---
url: /api/reference/wxt/interfaces/WebExtConfig.md
---

[API](../../packages.md) / [wxt](../index.md) / WebExtConfig

# Interface: WebExtConfig

Source: [packages/wxt/src/types.ts:1226](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1226)

Options for how [`web-ext`](https://github.com/mozilla/web-ext) starts the
browser.

## Contents

* [Properties](#properties)
  * [binaries?](#binaries)
  * [chromiumArgs?](#chromiumargs)
  * [chromiumPort?](#chromiumport)
  * [chromiumPref?](#chromiumpref)
  * [chromiumProfile?](#chromiumprofile)
  * [disabled?](#disabled)
  * [firefoxArgs?](#firefoxargs)
  * [firefoxPref?](#firefoxpref)
  * [firefoxProfile?](#firefoxprofile)
  * [keepProfileChanges?](#keepprofilechanges)
  * [openConsole?](#openconsole)
  * [openDevtools?](#opendevtools)
  * [startUrls?](#starturls)

## Properties

### binaries?

> `optional` **binaries?**: `Record`<`string`, `string`>

Source: [packages/wxt/src/types.ts:1245](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1245)

List of browser names and the binary that should be used to open the
browser.

#### See

* https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#chromium-binary
* https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#firefox

***

### chromiumArgs?

> `optional` **chromiumArgs?**: `string`\[]

Source: [packages/wxt/src/types.ts:1273](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1273)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#args

***

### chromiumPort?

> `optional` **chromiumPort?**: `number`

Source: [packages/wxt/src/types.ts:1267](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1267)

By default, chrome opens a random port for debugging. Set this value to use
a specific port.

***

### chromiumPref?

> `optional` **chromiumPref?**: `Record`<`string`, `any`>

Source: [packages/wxt/src/types.ts:1262](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1262)

An map of chrome preferences from
https://chromium.googlesource.com/chromium/src/+/main/chrome/common/pref\_names.h

#### Example

```ts
// change your downloads directory
  {
  download: {
  default_directory: "/my/custom/dir",
  },
  }
```

***

### chromiumProfile?

> `optional` **chromiumProfile?**: `string`

Source: [packages/wxt/src/types.ts:1249](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1249)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#chromium-profile

***

### disabled?

> `optional` **disabled?**: `boolean`

Source: [packages/wxt/src/types.ts:1233](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1233)

Whether or not to open the browser with the extension installed in dev
mode.

#### Default

```ts
false
```

***

### firefoxArgs?

> `optional` **firefoxArgs?**: `string`\[]

Source: [packages/wxt/src/types.ts:1271](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1271)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#args

***

### firefoxPref?

> `optional` **firefoxPref?**: `Record`<`string`, `string` | `number` | `boolean`>

Source: [packages/wxt/src/types.ts:1269](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1269)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#pref

***

### firefoxProfile?

> `optional` **firefoxProfile?**: `string`

Source: [packages/wxt/src/types.ts:1247](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1247)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#firefox-profile

***

### keepProfileChanges?

> `optional` **keepProfileChanges?**: `boolean`

Source: [packages/wxt/src/types.ts:1277](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1277)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#keep-profile-changes

***

### openConsole?

> `optional` **openConsole?**: `boolean`

Source: [packages/wxt/src/types.ts:1235](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1235)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#browser-console

***

### openDevtools?

> `optional` **openDevtools?**: `boolean`

Source: [packages/wxt/src/types.ts:1237](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1237)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#devtools

***

### startUrls?

> `optional` **startUrls?**: `string`\[]

Source: [packages/wxt/src/types.ts:1275](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L1275)

#### See

https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#start-url

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
