mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Let's try to change Uglifier settings properly
This commit is contained in:
@@ -12,11 +12,7 @@ Discourse::Application.configure do
|
||||
# Disable Rails's static asset server (Apache or nginx will already do this)
|
||||
config.serve_static_assets = GlobalSetting.serve_static_assets
|
||||
|
||||
if defined?(Uglifier)
|
||||
config.assets.js_compressor = Uglifier.new(output: {max_line_len: 1024}, screw_ie8: false)
|
||||
else
|
||||
config.assets.js_compressor = :uglifier
|
||||
end
|
||||
config.assets.js_compressor = :uglifier
|
||||
|
||||
config.assets.css_compressor = :sass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user