-
Notifications
You must be signed in to change notification settings - Fork 187
Many tailwind classes missing #110
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
Comments
This is likely due to the way it purges classes instead of just minifying. On a new project things will feel like they're missing when you really need a rebuild. When you say a class like |
The classes are present in the html in the loaded page in the browser, but the styles it should apply according to tailwindcss (ex:
According to this paragraph from the readme, |
I think I've found the issue. So, it seems like once the page has been rendered, if you add a new tailwindcss class that is not already present in the outputted This does not happen if I add a new tailwind class to my If I add a new tailwind class to any I am attaching a loom video to showcase what's happening: I've also noticed that after simply creating a new rails project using this command: |
Just watched the video. So the first "file built" was yellow, which is your js/jsx watcher, and the second "file built" is green, which is the css watcher. Check your
|
The contents of my module.exports = {
content: [
'./app/views/**/*.html.erb',
'./app/helpers/**/*.rb',
'./app/javascript/**/*.js'
]
} These are the default contents. Haven't touched or changed them in any way.
Exactly. Shouldn't the css watcher run again if classname changes are made in a |
Adding Thank you! |
@karansapolia glad you managed to solve the problem. This engine serves the tailwind without the need for node based bundlers. |
Ah, I assumed |
Uh oh!
There was an error while loading. Please reload this page.
I created a new
rails 7
application using the command:which executed successfully and I was happily working on my React-on-Rails application using
./bin/dev
. The only issue I noticed was that most tailwindcss classes were missing. I couldn't use simple classes likem-4
,mx-5
,font-extrabold
.On checking I noticed that very few classes were present in the generated
./app/assets/builds/application.css
file and almost all classes I regularly use were missing.Could someone guide on what could be the reason behind this, or what could I be doing wrong?
The text was updated successfully, but these errors were encountered: