Let's try telling uglifier to user 1k lines

This commit is contained in:
Robin Ward 2014-10-15 15:55:55 -04:00
parent b250696e04
commit 309144d9fc
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Discourse::Application.configure do
# Do not compress assets
config.assets.compress = false
config.assets.js_compressor = Uglifier.new(max_line_len: 1024)
# Don't Digest assets, makes debugging uglier
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)
config.serve_static_assets = GlobalSetting.serve_static_assets
config.assets.js_compressor = :uglifier
config.assets.js_compressor = Uglifier.new(max_line_len: 1024)
config.assets.css_compressor = :sass
# stuff should be pre-compiled