Skip to content

Commit

Permalink
config.assets.js_compressor = Uglifier.new(harmony: true)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koh0214 committed Jul 25, 2018
1 parent ef1eb04 commit a3f2577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# 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.
Expand Down

0 comments on commit a3f2577

Please sign in to comment.