Skip to content

Commit d02ba17

Browse files
authored
Add notes about re-compiling and caching
1 parent 057e2cb commit d02ba17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ This gem just gives access to the standard Tailwind CSS framework. If you need t
1414

1515
The last option adds the purger compressor to `config/environments/production.rb`. This ensures that when `assets:precompile` is called during deployment that the unused class names are not included in the tailwind output css used by the app. It also adds a `stylesheet_link_tag "tailwind"` to your `app/views/application.html.erb` file.
1616

17+
However, re-compiling assets does not currently work as expected because of caching in Sprockets, so you'll need to call `assets:clobber` and `assets:precompile` on each deployment for now.
18+
1719
You can do both things yourself, if you've changed the default setup.
1820

1921
If you need to customize what files are searched for class names, you need to replace the compressor line with something like:

0 commit comments

Comments
 (0)