Skip to content

Commit

Permalink
Add config.tailwindcss.server_process option
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno- committed Apr 29, 2024
1 parent 355ed62 commit eed5343
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/tailwindcss/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

module Tailwindcss
class Engine < ::Rails::Engine
config.tailwindcss = ActiveSupport::OrderedOptions.new
config.tailwindcss.server_process = Rails.env.development?

initializer "tailwindcss.assets" do
Rails.application.config.assets.precompile += %w( inter-font.css )
end
Expand All @@ -15,7 +18,7 @@ class Engine < ::Rails::Engine
end

server do
ServerProcess.start
ServerProcess.start if config.tailwindcss.server_process
end
end
end

0 comments on commit eed5343

Please sign in to comment.