Skip to content

Commit

Permalink
Merge pull request rails#181 from blerchin/fail-on-build-errors
Browse files Browse the repository at this point in the history
use exec to run tailwind binary, so return codes pass through
  • Loading branch information
rafaelfranca committed Jul 6, 2022
2 parents 7700f7e + a194970 commit 2e7ee0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/build.rake
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 2e7ee0e

Please sign in to comment.