Detect if in development mode within client module #10451
Answered
by
Josh-Cena
gaborbernat
asked this question in
Q&A
-
How can I detect if my client module is running in development mode or not? (could check the |
Beta Was this translation helpful? Give feedback.
Answered by
Josh-Cena
Aug 28, 2024
Replies: 1 comment
-
Yes, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gaborbernat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use
process.env.NODE_ENV === "development"
in client code. This will be replaced by Webpack with the correct constant.