Commit be02dd2
committed
fix: unnecessary stylesheet_link_tag for tailwind
In Rails 8, propshaft detects `:app` and loads all the css files under
app/assets/stylesheets, so we may not need this explicit tag for tailwind.
On installation, omit the tailwind stylesheet link tag if `:app` is
already being passed to stylesheet_link_tag in the layout.
On upgrade, remove the tailwind stylesheet link tag if `:app` is
already being passed to stylesheet_link_tag in the layout.1 parent 52515eb commit be02dd2
2 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
0 commit comments