diff options
author | Mark Longair <mhl@pobox.com> | 2013-09-30 09:01:50 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-09-30 10:34:20 +0100 |
commit | bd81b21cad716899312e73c0129a09d54154a5a7 (patch) | |
tree | 183f05955b8d928f9658be58fdfee8617c36ce50 /config/environments/production.rb | |
parent | 7f915bf9153cac94ed2f17fee7e7ea2ee9edce8f (diff) |
Beginning of switch to using the asset pipeline
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 0c1929366..a3e3cebd2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -31,4 +31,21 @@ Alaveteli::Application.configure do if AlaveteliConfiguration::force_ssl config.middleware.insert_before ActionDispatch::Cookies, ::Rack::SSL end + + # Compress JavaScripts and CSS + config.assets.compress = true + + # Choose the compressors to use + # config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :yui + + # Don't fallback to assets pipeline if a precompiled asset is missed + config.assets.compile = false + + # Generate digests for assets URLs. + config.assets.digest = true + + # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) + # config.assets.precompile += %w( search.js ) + end |