Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Turn on JS/CSS compression by default
  • Loading branch information
dhh committed Apr 22, 2011
1 parent dab96a2 commit 59ce0f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/generators/rails/app/templates/Gemfile
Expand Up @@ -8,6 +8,7 @@ source 'http://rubygems.org'
<%= "gem 'json'\n" if RUBY_VERSION < "1.9.2" -%>
gem 'sass', '~> 3.1.0.alpha'
gem 'coffee-script'
gem 'uglifier'
# Use unicorn as the web server
# gem 'unicorn'
Expand Down
Expand Up @@ -15,6 +15,10 @@
# (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

# Compress both stylesheets and JavaScripts
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :scss

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true

Expand Down

1 comment on commit 59ce0f6

@arunagw
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this to pass the test

#296

Please sign in to comment.