mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FEATURE: allow DONT_MINIFY flag in production for assets:precompile
This commit is contained in:
parent
08ee367210
commit
42925b46b8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue