From 42925b46b8cfd32876644322f43ac2cdaa29a078 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 29 Sep 2015 11:54:16 +1000 Subject: [PATCH] FEATURE: allow DONT_MINIFY flag in production for assets:precompile --- lib/tasks/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index a6fc5d09ff8..b220d322d4e 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -162,7 +162,7 @@ task 'assets:precompile' => 'assets:precompile:before' do STDERR.puts "Compressing: #{file}" # We can specify some files to never minify - unless to_skip.include?(info['logical_path']) + unless (ENV["DONT_MINIFY"] == "1") || to_skip.include?(info['logical_path']) FileUtils.mv(path, _path) compress(_file,file) end