diff --git a/lib/tasks/webpacker/compile.rake b/lib/tasks/webpacker/compile.rake index 2428a4f06..0ae3484ad 100644 --- a/lib/tasks/webpacker/compile.rake +++ b/lib/tasks/webpacker/compile.rake @@ -5,7 +5,7 @@ namespace :webpacker do desc "Compile javascript packs using webpack for production with digests" task compile: ["webpacker:verify_install", :environment] do puts "Compiling webpacker assets 🎉" - result = `NODE_ENV=production ./bin/webpack` + result = `NODE_ENV=production ./bin/webpack --json` unless $?.success? puts JSON.parse(result)["errors"]