Fix uglifier args
This commit is contained in:
parent
309144d9fc
commit
8a6f9425d4
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue