From b4c2c196e5168e1f281a69b9905ed85657be3bd1 Mon Sep 17 00:00:00 2001 From: Alessio Placitelli Date: Tue, 9 Feb 2021 14:13:10 +0100 Subject: [PATCH 1/2] 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. --- .../documentation/develop/web-ext-command-reference.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/content/documentation/develop/web-ext-command-reference.md b/src/content/documentation/develop/web-ext-command-reference.md index 76fbc9014..87d36ff99 100644 --- a/src/content/documentation/develop/web-ext-command-reference.md +++ b/src/content/documentation/develop/web-ext-command-reference.md @@ -340,6 +340,14 @@ web-ext run --start-url www.mozilla.com --start-url developer.mozilla.org Environment variable: `$WEB_EXT_START_URL` +#### `--watch-file` + +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. + +```shell +web-ext run --watch-file dist/background.js dist/content-script.js +``` + #### `--watch-ignored` 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. From 044c2187b694346cd21a8d07c1c3cab1874f3e11 Mon Sep 17 00:00:00 2001 From: Stuart Colville Date: Wed, 17 Mar 2021 13:52:29 +0000 Subject: [PATCH 2/2] Add --watch-files --- src/content/documentation/develop/web-ext-command-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/documentation/develop/web-ext-command-reference.md b/src/content/documentation/develop/web-ext-command-reference.md index 87d36ff99..80abc25be 100644 --- a/src/content/documentation/develop/web-ext-command-reference.md +++ b/src/content/documentation/develop/web-ext-command-reference.md @@ -340,7 +340,7 @@ web-ext run --start-url www.mozilla.com --start-url developer.mozilla.org Environment variable: `$WEB_EXT_START_URL` -#### `--watch-file` +#### `--watch-file`, `--watch-files` 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.