mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't use Uglifier that ships with Sprockets.
This commit is contained in:
parent
3a19cabd31
commit
95e0948fba
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user