Skip to content

Commit

Permalink
In config/environments/production.rb, add config.assets.uglifier = { …
Browse files Browse the repository at this point in the history
…harmony: true }

Doing this due to error popping up on testing heroku deployment.
See here: AlexanderPavlenko/sprockets_uglifier_with_source_maps#9
  • Loading branch information
breadoliveoilsalt committed Nov 15, 2018
1 parent 57a189d commit 20e8916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?

# Compress JavaScripts and CSS.
config.assets.uglifier = { harmony: true }
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass

Expand Down

0 comments on commit 20e8916

Please sign in to comment.