Skip to content

How to check if DEV or PROD in wxt.config.ts #560

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

You must be logged in to vote

Look at the example here: https://wxt.dev/guide/manifest.html#per-browser-configuration

The manifest field accepts a function, the first argument being a ConfigEnv object. The field called mode that will either be "development", "production", or whatever else you pass for the --mode flag.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lucadalli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants