FIX: Don't use Uglifier that ships with Sprockets.

This commit is contained in:
Guo Xiang Tan 2016-04-19 14:28:10 +08:00
parent 3a19cabd31
commit 95e0948fba

View file

@ -29,6 +29,8 @@ task 'assets:precompile:before' do
include GlobalPath
if $node_uglify
Rails.configuration.assets.js_compressor = nil
module ::Sprockets
# TODO: https://github.com/rails/sprockets-rails/pull/342
# Rails.configuration.assets.gzip = false
@ -37,15 +39,6 @@ task 'assets:precompile:before' do
true
end
end
class UglifierCompressor
def evaluate(context, locals, &block)
# monkey patch cause we do this later, no idea how to cleanly disable
data
end
end
end
end