Fix uglifier args

This commit is contained in:
Robin Ward 2014-10-15 16:00:45 -04:00
parent 309144d9fc
commit 8a6f9425d4
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ Discourse::Application.configure do
# Do not compress assets # Do not compress assets
config.assets.compress = false config.assets.compress = false
config.assets.js_compressor = Uglifier.new(max_line_len: 1024) config.assets.js_compressor = Uglifier.new(output: {max_line_len: 1024})
# Don't Digest assets, makes debugging uglier # Don't Digest assets, makes debugging uglier
config.assets.digest = false config.assets.digest = false

View File

@ -12,7 +12,7 @@ Discourse::Application.configure do
# Disable Rails's static asset server (Apache or nginx will already do this) # Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = GlobalSetting.serve_static_assets config.serve_static_assets = GlobalSetting.serve_static_assets
config.assets.js_compressor = Uglifier.new(max_line_len: 1024) config.assets.js_compressor = Uglifier.new(output: {max_line_len: 1024})
config.assets.css_compressor = :sass config.assets.css_compressor = :sass
# stuff should be pre-compiled # stuff should be pre-compiled