Skip to content

Commit f43240b

Browse files
committed
use env directly
1 parent 16b1e77 commit f43240b

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
@@ -39,7 +39,7 @@
3939
end
4040

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

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

0 commit comments

Comments
 (0)