Skip to content

Commit d6a42f2

Browse files
authored
Prevent duplicate tailwind css reference
1 parent db80e88 commit d6a42f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/install/tailwindcss.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if APPLICATION_LAYOUT_PATH.exist?
55
say "Add Tailwindcss include tags and container element in application layout"
66
insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4), before: /^\s*<%= stylesheet_link_tag/
7-
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
7+
<%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %>
88
ERB
99

1010
if File.open(APPLICATION_LAYOUT_PATH).read =~ /<body>\n\s*<%= yield %>\n\s*<\/body>/

0 commit comments

Comments
 (0)