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 f77a0ce commit 534a840Copy full SHA for 534a840
lib/tailwindcss/engine.rb
@@ -16,7 +16,11 @@ class Engine < ::Rails::Engine
16
17
server do
18
tailwind_pid = fork do
19
- exec(*Tailwindcss::Commands.watch_command(always: true))
+ # To avoid stealing keystrokes from the debug gem's IRB console in the main process (which
20
+ # needs to be able to read from $stdin), we use `IO.open(..., 'r+')`.
21
+ IO.popen(Tailwindcss::Commands.watch_command, 'r+') do |io|
22
+ IO.copy_stream(io, $stdout)
23
+ end
24
end
25
at_exit do
26
Process.kill(:INT, tailwind_pid)
0 commit comments