Rails 3.1 asset pipeline and manually ordered Javascript requires

前端 未结 5 1989
余生分开走
余生分开走 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:07

    I believe you can put a library.js in your in vendor/assets/javascripts and then simply

    //= require library.js
    

    from your application.js, no?

提交回复
热议问题