diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index bc11b20d22f..8c299d0cf6d 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -11,7 +11,7 @@ task 'assets:precompile:before' do puts "Purging temp files" `rm -fr #{Rails.root}/tmp/cache` - if Rails.configuration.assets.js_compressor == :uglifier && !`which uglifyjs`.empty? && ENV['FORCE_NODE_UGLIFY'] + if Rails.configuration.assets.js_compressor == :uglifier && !`which uglifyjs`.empty? && !ENV['SKIP_NODE_UGLIFY'] $node_uglify = true end