From 3f6bd934b79485edd0d9bd5bf640c17e7cfa82ee Mon Sep 17 00:00:00 2001 From: Jared White Date: Thu, 19 May 2022 21:37:42 -0700 Subject: [PATCH] Update Tailwind config so jit-refresh.css is git ignored --- .../bridgetown-core/configurations/tailwindcss.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bridgetown-core/lib/bridgetown-core/configurations/tailwindcss.rb b/bridgetown-core/lib/bridgetown-core/configurations/tailwindcss.rb index 2e4e00eb4..9d3ea9fac 100644 --- a/bridgetown-core/lib/bridgetown-core/configurations/tailwindcss.rb +++ b/bridgetown-core/lib/bridgetown-core/configurations/tailwindcss.rb @@ -38,6 +38,20 @@ create_file "frontend/styles/jit-refresh.css", "/* #{Time.now.to_i} */" +insert_into_file "Rakefile", + after: %r{ task :(build|dev) do\n} do + <<-JS + sh "touch frontend/styles/jit-refresh.css" + JS +end + +append_to_file ".gitignore" do + <<~FILES + + frontend/styles/jit-refresh.css + FILES +end + create_builder "tailwind_jit.rb" do <<~RUBY class Builders::TailwindJit < SiteBuilder