From d5fe0fe8e492d1511c6f31648f8fe861504c111e Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 19 Dec 2017 23:04:36 -0500 Subject: [PATCH] Make yarn_install task consistent with the one shipped with Rails --- lib/tasks/webpacker/yarn_install.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/webpacker/yarn_install.rake b/lib/tasks/webpacker/yarn_install.rake index c60978f68..2809d8002 100644 --- a/lib/tasks/webpacker/yarn_install.rake +++ b/lib/tasks/webpacker/yarn_install.rake @@ -1,6 +1,6 @@ namespace :webpacker do desc "Support for older Rails versions. Install all JavaScript dependencies as specified via Yarn" - task :yarn_install, [:arg1, :arg2] do |task, args| - system "yarn #{args[:arg1]} #{args[:arg2]}" + task :yarn_install do + system "yarn install --no-progress --production" end end