You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What is this PR?
Adds a trouble-shooting solution - sprockets wasn't serving an updated css file. Why not?
After many hours of hair-pulling, I stumbled upon this issue: rails/tailwindcss-rails#119 which saved the day.
It's easy to overlook, and probably warrants a note in the documentation.
Hence this PR. Hopefully, it will save someone a lotta of trouble.
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,14 @@ Some CSS packages use new CSS features that are not supported by the default Sas
45
45
46
46
A common issue is that your repository does not contain the output directory used by the build commands. You must have `app/assets/builds` available. Add the directory with a `.gitkeep` file, and you'll ensure it's available in production.
47
47
48
+
### Why isn't Rails using my updated css files?
49
+
50
+
Watch out - if you precompile your files locally, those will be served over the dynamically created ones you expect. The solution:
51
+
52
+
```shell
53
+
rails assets:clobber
54
+
```
55
+
48
56
## License
49
57
50
58
CSS Bundling for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
0 commit comments