-
I just created a new Ruby on Rails application and added the tailwind using the documentation (btw I'm not too familiar with tailwind yet) I can see all the styles, and everything is working; however, when I try to change any color or font size or add another class using the browser inspection tool, it does not work unless I add it to the code and stop/start the server. I tried adding the CDN directly to the application without the tailwind gem, and it worked.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is normal behavior. Tailwind builds CSS into a file by scanning your files for Tailwind class name candidates in strings. So when you make changes in the browser inspection tool, it has no way of knowing you've made those changes.
As per the official installation guide for Ruby on Rails, it is recommended to use the |
Beta Was this translation helpful? Give feedback.
This is normal behavior. Tailwind builds CSS into a file by scanning your files for Tailwind class name candidates in strings. So when you make changes in the browser inspection tool, it has no way of knowing you've made those changes.
As per the official installation guide for Ruby on Rails, it is recommended to use the
tailwindcss-ruby
andtailwindcss-rails
gems.