mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
FIX: Don't use Uglifier that ships with Sprockets.
This commit is contained in:
parent
3a19cabd31
commit
95e0948fba
1 changed files with 2 additions and 9 deletions
|
@ -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 a new issue