Skip to content

Commit b4c2c19

Browse files
authored
Add documentation for --watch-file
This PR adds documentation for the `--watch-file` option (that was missing). The behaviour for this option changed in mozilla/web-ext#2125.
1 parent 89407cd commit b4c2c19

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/content/documentation/develop/web-ext-command-reference.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@ web-ext run --start-url www.mozilla.com --start-url developer.mozilla.org
340340

341341
Environment variable: `$WEB_EXT_START_URL`
342342

343+
#### `--watch-file`
344+
345+
A list of files that should be watched for changes. This is useful if you want web-ext to explicitly watch for changes to specific files, without watching the extension directory tree, e.g. the output of the build from a module bundler.
346+
347+
```shell
348+
web-ext run --watch-file dist/background.js dist/content-script.js
349+
```
350+
343351
#### `--watch-ignored`
344352

345353
A list of paths and globs patterns that should not be watched for changes. This is useful if you want to explicitly prevent web-ext from watching part of the extension directory tree, e.g. the node_modules folder.

0 commit comments

Comments
 (0)