We've moved discussions to Discord

How do you get CSS changes to update?

Dan Tappin
I seem to be missing something here.  In development unless I run `rake assets:precompile` after every CSS change the updates are not reflected in the browser.  Running under foreman doesn't help either.
Brandon Brown
i have also noticed this. Any update here?
Mateusz Kozak
I've noticed the same behavior recently. I think upgrade to tailwind 3 or rails 7 caused that
same issue on my end
Aska Konomi
Mine is working with the Rails 7 version.

In app/assets/stylesheets/application.tailwind.css, I added
@import "custom";
I do need to use .css instead of .scss for the import to work. Anyone knows why?

And I can use @apply in the .css file, too. I guess we are using PostCSS and not SASS loader now?
tommersio
Same issue here. Did anyone find a solution for this?


Tyler Smart
Same issue, need to precompile. In Rails 7, this doesn't update:
yarn build:css --watch
Tyler Smart
The answer is to run `rails assets:clobber` as most likely you compiled assets in dev at one point.

Don't precompile them in dev, let yarn do the work.
Notifications
You’re not receiving notifications from this thread.