Skip to content

Conversation

seanpdoyle
Copy link
Contributor

Prior to this change, installing the engine via bin/rails tailwindcss:install yielded the following diff:

--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -6,7 +6,9 @@
     <%= csp_meta_tag %>

-    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
+
+    <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %>
+    <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
     <%= javascript_importmap_tags %>
   </head>

After this change, the calls to stylesheet_link_tag with
"inter-font", "tailwind", and "application" all occur on their own
lines.

Prior to this change, installing the engine via `bin/rails
tailwindcss:install` yielded the following diff:

```diff
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -6,7 +6,9 @@
     <%= csp_meta_tag %>

-    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
+
+    <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %>
+    <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
     <%= javascript_importmap_tags %>
   </head>
```

After this change, the calls to `stylesheet_link_tag` with
`"inter-font"`, `"tailwind"`, and `"application"` all occur on their own
lines.
@dhh dhh merged commit e34b8e2 into rails:main Aug 30, 2021
@seanpdoyle seanpdoyle deleted the install-line-breaks branch August 30, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants