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
Whether if I execute wxt or wxt --build, the output will be chrome-mv3
This poses an issue:
If I wish to simultaneously test on Chrome desktop and a Chromium browser on Android (such as Kiwi), it makes the development cycle quite cumbersome, especially since web-ext does not support yet setting up a dev server for chrome-android
Is your feature request related to a bug?
N/A
What are the alternatives?
Every time I make a modification I need to run wxt to test on Chrome desktop, and every time I need to run it on Android I need to run wxt --build, zip, and push [ext-name]-[version].zip to the device
If I could have separate chrome-dev-mv3 and chrome-prod-mv3, I could zip the latter directory and push it to the device flawlessly
Additional context
A potential solution is to let the developer specify a custom tag, e.g. wxt --build --tag prod → chrome-prod-mv3
@aklinker1 Sorry for pinging, do you have a projection of when this feature will be available? I believe the implementation could involve adding to the wxt.config.ts a field outputDirTemplate
Activity
1natsu172 commentedon Sep 29, 2024
@avi12 WXT already provide the way with reusable-module, but there is another problem and it is a blocker for use cases. See #939 .
avi12 commentedon Sep 29, 2024
Regardless of this separation, I see it as a necessity to let the developer build the extension with a custom tag, e.g. for A/B testing
avi12 commentedon Oct 12, 2024
@aklinker1 Sorry for pinging, do you have a projection of when this feature will be available? I believe the implementation could involve adding to the
wxt.config.tsa fieldoutputDirTemplateaklinker1 commentedon Oct 16, 2024
I work on WXT in my free time, so no, I will never have estimates for when I can work on things.
aklinker1 commentedon Oct 16, 2024
Closing this in favor of #1069
aklinker1 commentedon Oct 19, 2024
Released
outDirTemplateinv0.19.12aklinker1 commentedon Nov 16, 2024
In v0.20, the default for
outDirTemplateis changing to support this use-case by default. See #1086 for details.aklinker1 commentedon Mar 28, 2025
Released in v0.20.0