From 1844572fd129f03bc6741b3ae928b730133cf6e3 Mon Sep 17 00:00:00 2001 From: wycats Date: Thu, 16 Jun 2011 12:08:26 -0700 Subject: =?UTF-8?q?Make=20the=20API=20for=20compression=20consistent=C2=A0?= =?UTF-8?q?between=20JS=20and=20CSS.=20By=20default,=20users=20just=20need?= =?UTF-8?q?=20to=20say=20whether=20they=20want=20compression=20or=20not,?= =?UTF-8?q?=20and=20a=20default=20will=20be=20chosen=20by=20a=20Railtie.?= =?UTF-8?q?=20In=20the=20case=20of=20CSS,=20this=20default=20is=20already?= =?UTF-8?q?=20chosen=20by=20the=20sass-rails=20gem.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users can still explicitly choose a compressor in their application.rb if they have a preference, but will usually want to let plugins choose defaults in their Railties. --- .../rails/app/templates/config/environments/production.rb.tt | 3 --- 1 file changed, 3 deletions(-) (limited to 'railties/lib') diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt index 60e26755fe..06ed890e05 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt @@ -14,9 +14,6 @@ # Compress JavaScripts and CSS config.assets.compress = true - # Specify the default JavaScript compressor - config.assets.js_compressor = :uglifier - # Specifies the header that your server uses for sending files # (comment out if your front-end server doesn't support this) config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx -- cgit v1.2.3