Skip to content

Commit

Permalink
Update Tailwind config so jit-refresh.css is git ignored (bridgetownr…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite authored May 21, 2022
1 parent 00e0990 commit 62ffbbb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bridgetown-core/lib/bridgetown-core/configurations/tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62ffbbb

Please sign in to comment.