Skip to content

Commit 052ba22

Browse files
authored
Update README.md (#112)
### 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.
1 parent 0d06dea commit 052ba22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ Some CSS packages use new CSS features that are not supported by the default Sas
4545

4646
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.
4747

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+
4856
## License
4957

5058
CSS Bundling for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)