Skip to content

Commit

Permalink
run ./bin/webpack with --json flag in webpacker:compile (#199)
Browse files Browse the repository at this point in the history
this flag was removed in #153, but without it the error handling block
throws a `JSON::ParserError` and dumps the webpack output
  • Loading branch information
thomas-mcdonald authored and dhh committed Mar 28, 2017
1 parent f8dcb30 commit c4d912d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/webpacker/compile.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit c4d912d

Please sign in to comment.