We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355ed62 commit eed5343Copy full SHA for eed5343
lib/tailwindcss/engine.rb
@@ -2,6 +2,9 @@
2
3
module Tailwindcss
4
class Engine < ::Rails::Engine
5
+ config.tailwindcss = ActiveSupport::OrderedOptions.new
6
+ config.tailwindcss.server_process = Rails.env.development?
7
+
8
initializer "tailwindcss.assets" do
9
Rails.application.config.assets.precompile += %w( inter-font.css )
10
end
@@ -15,7 +18,7 @@ class Engine < ::Rails::Engine
15
18
16
19
17
20
server do
- ServerProcess.start
21
+ ServerProcess.start if config.tailwindcss.server_process
22
23
24
0 commit comments