-
-
Save jsanti/9478614 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.assets.compress = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :assets do | |
gem 'sass-rails', '~> 4.0.0.beta1' | |
gem 'coffee-rails', '~> 4.0.0.beta1' | |
gem 'sprockets-rails', :require => 'sprockets/railtie' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer', platforms: :ruby | |
gem 'uglifier', '>= 1.0.3' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compress JavaScripts and CSS | |
config.assets.compress = true | |
config.assets.compile = true | |
# Generate digests for assets URLs | |
config.assets.digest = true | |
config.assets.configure do |env| | |
env.js_compressor = :uglify # or :closure, :yui | |
env.css_compressor = :sass # or :yui | |
env.logger = Rails.logger | |
env.cache = ActiveSupport::Cache::FileStore.new("tmp/cache/assets") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment