Skip to content

Commit

Permalink
use exec to run tailwind binary, so return codes pass through
Browse files Browse the repository at this point in the history
  • Loading branch information
blerchin committed Jul 6, 2022
1 parent 7700f7e commit a194970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/build.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ TAILWIND_COMPILE_COMMAND = "#{RbConfig.ruby} #{Pathname.new(__dir__).to_s}/../..
namespace :tailwindcss do
desc "Build your Tailwind CSS"
task :build do
system TAILWIND_COMPILE_COMMAND
exec TAILWIND_COMPILE_COMMAND
end

desc "Watch and build your Tailwind CSS on file changes"
task :watch do
system "#{TAILWIND_COMPILE_COMMAND} -w"
exec "#{TAILWIND_COMPILE_COMMAND} -w"
end
end

Expand Down

0 comments on commit a194970

Please sign in to comment.