Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults for running safeClassNames #1016

Merged
merged 2 commits into from Jun 7, 2023
Merged

Defaults for running safeClassNames #1016

merged 2 commits into from Jun 7, 2023

Conversation

cossssmin
Copy link
Member

@cossssmin cossssmin commented Jun 7, 2023

This PR changes the way the safeClassNames Transformer runs by default.

It now:

  • doesn't run when env is local (developing locally, like with maizzle serve)
    • exception: will run locally if explicitly set to true
  • doesn't run if explicitly disabled (safeClassNames: false)

This makes it a little easier to debug when developing locally and inspecting the code - by default now you get to see the Tailwind classes exactly as you wrote them.

@cossssmin cossssmin merged commit 4ef0de2 into master Jun 7, 2023
3 checks passed
@cossssmin cossssmin deleted the safeclassnames-local branch December 29, 2023 14:30
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.

None yet

1 participant