Skip to content

How can I include the mode in the output folder ? #820

Answered by aklinker1
stevebeauge asked this question in Q&A
Discussion options

You must be logged in to vote

For now, you can change the output directory using a module:

// modules/out-dir.ts
export default defineWxtModule((wxt) => {
  wxt.hooks.hook('ready', (wxt) => {
    wxt.config.outDir += `-${WXT.config.mode}`
  });
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stevebeauge
Comment options

Answer selected by stevebeauge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants