Skip to content

Commit

Permalink
use env directly
Browse files Browse the repository at this point in the history
  • Loading branch information
npezza93 committed Jan 3, 2024
1 parent 16b1e77 commit f43240b
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 @@ -39,7 +39,7 @@
end

say "Add puma plugin"
append_to_file "config/puma.rb", %(\n# Runs the tailwind watcher\nplugin :tailwindcss if Rails.env.development?)
append_to_file "config/puma.rb", %(\n# Runs the tailwind watcher\nplugin :tailwindcss if ENV.fetch("RAILS_ENV", "development") == "development")

say "Compile initial Tailwind build"
run "rails tailwindcss:build"

0 comments on commit f43240b

Please sign in to comment.