coffeescript - Brunch javascripts joinTo specific order -


coming asset pipeline, can define specific order load javascript files so:

//= require jquery //= require some_file //= require_tree ./some/directory //= require other_directory/some_file //= require_tree ./directory 

how can express specific order in brunch's configuration ?

thanks in advance.

https://github.com/brunch/brunch/blob/master/docs/config.md#files

brunch doesn't support require_tree, can specify concatenation order needed, file file. avoid listing every file, can think files need ordered @ top , put in before array, need @ bottom can go in after array, , brunch automatically sort rest.

# in config.coffee files:   javascripts:     jointo:       'javascripts/app.js': /^app/       'javascripts/vendor.js': /^vendor/     order:       before: [         'vendor/scripts/console-helper.js',         'vendor/scripts/jquery-1.7.0.js',         'vendor/scripts/underscore-1.3.1.js',         'vendor/scripts/backbone-0.9.0.js'       ] 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -