From c4d912dbee884c192a436261189f806e26f7bf95 Mon Sep 17 00:00:00 2001 From: Thomas McDonald Date: Tue, 28 Mar 2017 02:51:26 -0700 Subject: [PATCH] run ./bin/webpack with --json flag in webpacker:compile (#199) this flag was removed in #153, but without it the error handling block throws a `JSON::ParserError` and dumps the webpack output --- lib/tasks/webpacker/compile.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]