1
Fork 0

Add explicit target handling for web-ext run.

This commit is contained in:
Bauke 2023-07-01 11:29:19 +02:00
parent 83e240ad70
commit 395ce2fb62
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,10 @@ args = ["web-ext", "build", "--config=build/web-ext-${BROWSER}.json"]
[tasks.run] [tasks.run]
clear = true clear = true
command = "pnpm" command = "pnpm"
args = ["web-ext", "run", "--config=build/web-ext-${BROWSER}.json"] # Set --target explicitly, since web-ext for some reason doesn't use the target
# set in the configuration file. https://github.com/mozilla/web-ext/issues/1862
env = { TARGET = { source = "${BROWSER}", default_value = "${BROWSER}", mapping = { "firefox" = "firefox-desktop" } } }
args = ["web-ext", "run", "--target=${TARGET}", "--config=build/web-ext-${BROWSER}.json"]
# Alias for `WATCH=true makers build`. # Alias for `WATCH=true makers build`.
[tasks.watch] [tasks.watch]