Skip to content

Commit

Permalink
Update production.rb
Browse files Browse the repository at this point in the history
Add:
  # config.assets.js_compressor = :uglifier
  config.assets.js_compressor = Uglifier.new(harmony: true) # see Uglifier README.md
  • Loading branch information
fritzfreiheit authored Dec 15, 2020
1 parent 7c7fe53 commit a722ac4
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 @@ -24,7 +24,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) # see Uglifier README.md
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
Expand Down

0 comments on commit a722ac4

Please sign in to comment.