Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the dev and production outputs #1010

Closed
avi12 opened this issue Sep 29, 2024 · 6 comments
Closed

Separate the dev and production outputs #1010

avi12 opened this issue Sep 29, 2024 · 6 comments
Labels

Comments

@avi12
Copy link
Contributor

avi12 commented Sep 29, 2024

Feature Request

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 prodchrome-prod-mv3

@avi12 avi12 added the feature label Sep 29, 2024
@1natsu172
Copy link
Contributor

@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
Copy link
Contributor Author

avi12 commented 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
Copy link
Contributor Author

avi12 commented 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.ts a field outputDirTemplate

@aklinker1
Copy link
Collaborator

I work on WXT in my free time, so no, I will never have estimates for when I can work on things.

@aklinker1
Copy link
Collaborator

Closing this in favor of #1069

@aklinker1 aklinker1 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@aklinker1
Copy link
Collaborator

Released outDirTemplate in v0.19.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants