Skip to content

Conversation

@dcastil
Copy link
Contributor

@dcastil dcastil commented Oct 20, 2021

I wanted to migrate to Tailwind v3.0.0-alpha.1 but got blocked by a ReferenceError: contentMatchCache is not defined error which got fixed already in an unreleased commit.

After some investigating I found out that Chromatic which I use for building and deploying Storybook on CI sets the environment variable DEBUG=0 during the build.

Because the condition process.env.DEBUG === '0' still sets the debug mode to true within Tailwind, there is no way for me to disable the debug mode in Tailwind if it was set by another library. I think it makes sense to disable the debug mode if it's specifically '0'.

Let me know what you think. 😊

@dcastil dcastil marked this pull request as ready for review October 20, 2021 18:31
@dcastil
Copy link
Contributor Author

dcastil commented Oct 20, 2021

Linking chromaui/chromatic-cli#429

@RobinMalfait
Copy link
Member

Hey! Thank you for your PR!
Much appreciated! 🙏

Yep this makes sense, thanks!

@dcastil dcastil deleted the fix-debug-env branch October 25, 2021 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants