js和CSS文件可以非常大,以便人类可读。是否有某种类型的宝石,将最小化所有的css和js在生产模式下运行,以减少最终用户的加载时间?
可以。
http://synthesis.sbecker.net/pages/asset_packager
选择:
http://david-burger.blogspot.com/2008/02/minify-rails-javascript-and-css-with.html https://github.com/thumblemonks/smurf
Jammit也是rails的另一个资产打包。