Skip to content

Commit

Permalink
Prevent duplicate tailwind css reference
Browse files Browse the repository at this point in the history
  • Loading branch information
rip747 authored Oct 2, 2024
1 parent db80e88 commit d6a42f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if APPLICATION_LAYOUT_PATH.exist?
say "Add Tailwindcss include tags and container element in application layout"
insert_into_file APPLICATION_LAYOUT_PATH.to_s, <<~ERB.indent(4), before: /^\s*<%= stylesheet_link_tag/
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %>
ERB

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

0 comments on commit d6a42f2

Please sign in to comment.