Skip to content

Commit

Permalink
Merge pull request #1843 from alphagov/fix-asset-compression
Browse files Browse the repository at this point in the history
Restore asset compress after Rails 6 upgrade
  • Loading branch information
MuriloDalRi authored Sep 2, 2020
2 parents 803eb73 + 2e1ca34 commit 95fa95a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?

# Compress JS using a preprocessor.
config.assets.js_compressor = :uglifier

# Compress CSS using a preprocessor.
# config.assets.css_compressor = :sass

Expand Down

0 comments on commit 95fa95a

Please sign in to comment.