我在 gem 里面包含了
gem 'yui-compressor'
在 production.rb 做如下设置
# Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_assets = true
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :yui
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = true
在 production 环境下 css 没有压缩 js 倒是压缩了。求助