CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

Order example Application.js scripts #55

Closed renege closed 10 years ago

renege commented 10 years ago

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?

kreitje commented 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

kdocki commented 10 years ago

put in docs under faq