FEATURE: allow DONT_MINIFY flag in production for assets:precompile

This commit is contained in:
Sam 2015-09-29 11:54:16 +10:00
parent 08ee367210
commit 42925b46b8
1 changed files with 1 additions and 1 deletions

View File

@ -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