Closed renege closed 10 years ago
Something like the following will work. Notice I got rid of the require_tree . line.
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear in whatever order it // gets included (e.g. say you have require_tree . then the code will appear after all the directories // but before any files alphabetically greater than 'application.js' // // The available directives right now are require, require_directory, and require_tree //
//= require jquery //= require custom.modernizr //= require foundation //= require main
put in docs under faq
Is there an example of the standard application.js that is provided where I can see how I have to add just the JS-files I want, in my defined order?