Skip to content

Separate the dev and production outputs #1010

Description

@avi12

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 prod → chrome-prod-mv3

Activity

  1. 1natsu172 commented on Sep 29, 2024

    @1natsu172
    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 .

  2. avi12 commented on Sep 29, 2024

    @avi12
    ContributorAuthor

    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

  3. avi12 commented on Oct 12, 2024

    @avi12
    ContributorAuthor

    @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

  4. aklinker1 commented on Oct 16, 2024

    @aklinker1
    Member

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

  5. aklinker1 commented on Oct 16, 2024

    @aklinker1
    Member

    Closing this in favor of #1069

  6. aklinker1 commented on Oct 19, 2024

    @aklinker1
    Member

    Released outDirTemplate in v0.19.12

  7. aklinker1 commented on Nov 16, 2024

    @aklinker1
    Member

    In v0.20, the default for outDirTemplate is changing to support this use-case by default. See #1086 for details.

  8. aklinker1 commented on Mar 28, 2025

    @aklinker1
    Member

    Released in v0.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions