mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Change JS compressor from :uglifier to Uglifier.new(harmony: true)
This should fix the command rails assets:precompile for production environment.
This commit is contained in:
parent
f90589d714
commit
a633861e1f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ Rails.application.configure do
|
|||
# config.action_dispatch.rack_cache = true
|
||||
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = :uglifier
|
||||
config.assets.js_compressor = Uglifier.new(harmony: true)
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
|
|
Loading…
Reference in a new issue