From 4c79d225a7da4178f3c9e1169548ff7199d3b821 Mon Sep 17 00:00:00 2001 From: Arne De Herdt Date: Thu, 7 Nov 2019 09:39:04 +0100 Subject: [PATCH] Revert of production env enforcement (#2341) * Revert d8dd4460144e63a9120290631c492aba3cbea332 Undoing the commit that forces the production environment. The code has it as default when not defined, this is sufficient, but it should respect the user settings! --- 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 db5970bb7..b8422cd41 100644 --- a/lib/tasks/webpacker/compile.rake +++ b/lib/tasks/webpacker/compile.rake @@ -26,7 +26,7 @@ end namespace :webpacker do desc "Compile JavaScript packs using webpack for production with digests" task compile: ["webpacker:verify_install", :environment] do - Webpacker.with_node_env("production") do + Webpacker.with_node_env(ENV.fetch("NODE_ENV", "production")) do ensure_log_goes_to_stdout do if Webpacker.compile # Successful compilation!