mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Turn on JS/CSS compression by default
This commit is contained in:
parent
dab96a267e
commit
59ce0f695b
2 changed files with 5 additions and 0 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue