-
Notifications
You must be signed in to change notification settings - Fork 973
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
modify generated tailwind config to opt-in to upcoming change #1179
modify generated tailwind config to opt-in to upcoming change #1179
Conversation
I'm not entirely sure why it was commented out, maybe @jtoar knows a bit about the history for this? So the idea with this pull-request is that you run it again on your existing project and it'll uncomment that flag? Maybe we should just make it so that |
@peterp The line must be commented out by default—all the tailwind generator does right now is run the command to generate the config:
and what gets initialized must be changing with the versions. So @forresthayes, if these changes are what's recommended, I'd say we opt into them! @peterp it looks like this PR makes it so that |
I updated my PR to opt-in to all upcoming tailwind config changes. But you guys know best 😀, if this approach is inefficient or unnecessary, we can move on! I just thought I'd give it a shot. By the way, I explored using |
@forresthayes I like the approach you're thinking about, but I'm worried that this may be too much for Redwood to handle, and is better dealt with by tailwind. Maybe a better approach is to nudge the developer towards reading the future docs and manually opting in them if they choose to do so? I'm not 100% sure. |
Hey @forresthayes I saw a tweet a few days ago that |
@forresthayes See my review request re: next step and moving this to the new I'll get this merged asap once you have a chance to update. Thanks! |
I moved the code that opts-in to future Tailwind changes into the new setup tailwind script per your request, but, looking at Peter's comments above, I totally understand if this approach goes too far or is liable to break. 🤷♂️ |
This works great @forresthayes I'm merging now and will follow up with a quick addition to add info in the final output about the enabled opt-in. 🚀 |
resolves #1064
@peterp, I noticed the redwood tailwind utility generates a config with a
removeGeneratedGapUtilities
flag that is commented out. Was the commented flag present when you opened the issue? If not, would you rather leave it as is?There is also another upcoming-change generated flag regarding purging layers
For now, my PR only uncomments the flag for removing the gap utilities.
Just let me know what you think is best, Thanks!