You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/essentials/config/browser-startup.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ outline: deep
4
4
5
5
# Browser Startup
6
6
7
-
> See the [API Reference](/api/reference/wxt/interfaces/ExtensionRunnerConfig) for a full list of config.
7
+
> See the [API Reference](/api/reference/wxt/interfaces/WebExtConfig) for a full list of config.
8
8
9
9
During development WXT uses [`web-ext` by Mozilla](https://www.npmjs.com/package/web-ext) to automatically open a browser window with your extension installed.
10
10
@@ -15,9 +15,9 @@ You can configure browser startup in 3 places:
15
15
1.`<rootDir>/web-ext.config.ts`: Ignored from version control, this file lets you configure your own options for a specific project without affecting other developers
16
16
17
17
```ts
18
-
import { defineRunnerConfig } from'wxt';
18
+
import { defineWebExtConfig } from'wxt';
19
19
20
-
exportdefaultdefineRunnerConfig({
20
+
exportdefaultdefineWebExtConfig({
21
21
// ...
22
22
});
23
23
```
@@ -32,7 +32,7 @@ You can configure browser startup in 3 places:
32
32
To set or customize the browser opened during development:
33
33
34
34
```ts
35
-
exportdefaultdefineRunnerConfig({
35
+
exportdefaultdefineWebExtConfig({
36
36
binaries: {
37
37
chrome: '/path/to/chrome-beta', // Use Chrome Beta instead of regular Chrome
38
38
firefox: 'firefoxdeveloperedition', // Use Firefox Developer Edition instead of regular Firefox
@@ -52,15 +52,15 @@ To persist data, set the `--user-data-dir` flag:
0 commit comments