Skip to content

Can't change the styles directly in the browser unless use CDN (Ruby on Rails app) #16644

Answered by wongjn
Azzawie asked this question in Help
Discussion options

You must be logged in to vote
  1. Is this normal behavior, or am I missing some configurations?

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.

  1. Also, for the ROR application, which method is better, using the gem or the npm/yarn?

As per the official installation guide for Ruby on Rails, it is recommended to use the tailwindcss-ruby and tailwindcss-rails gems.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Azzawie
Comment options

Answer selected by Azzawie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants