Skip to content

[gatsby-plugin-styled-components] Disable displayName option only in production build #32867

Answered by herecydev
AnsonH asked this question in Help
Discussion options

You must be logged in to vote

Can you not leverage process.env.NODE_ENV, i.e.

{
displayName: process.env.NODE_ENV === "development" ? true : false
}

Replies: 1 comment

Comment options

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