开发者

Should I port my existing Jammit asset pipeline to the new Rails 3.1 version?

开发者 https://www.devze.com 2023-04-02 01:23 出处:网络
We\'ve implemented Jammit for asset caching, compression and optimization in our Rails application. It\'s fully integrated with our continuous integration process and works well. That said, I am seein

We've implemented Jammit for asset caching, compression and optimization in our Rails application. It's fully integrated with our continuous integration process and works well. That said, I am seeing 3.1 introduces a new canonical asset pipeline based on Sprockets.

开发者_运维百科Are there advantages to the Sprocket based approach that would merit porting our system? I do not want to spend time converting our system if there are no benefits.


I have already used Sprocket and Jammit and the main advantage of the Rails 3.1 approach is the complete and native integration of Sprocket, not the gem itself. I'm not a specialist but both gems are great and, for me, equivalent.

The rails 3.1 assets pipeline provide a clean architecture for js and css files and the native use of associated gems (sass, coffee-script, sprocket). If in your app you already have a clean tree for your files and a great integration of your gems, don't change anything !

0

精彩评论

暂无评论...
验证码 换一张
取 消