Rails 3.1 asset pipeline and manually ordered Javascript requires

前端 未结 5 1976
余生分开走
余生分开走 2020-11-29 01:01

I am trying to convert an existing app to the new 3.1 asset pipeline layout, and want to include a lot of vendor files that have to be in a specific order, (underscore.js an

5条回答
  •  渐次进展
    2020-11-29 01:09

    You can require each file in particular order and then add:

    //= require_self
    

    instead of:

    //= require_tree .
    

提交回复
热议问题