title: Best way to resolve dependency order in Rails asset pipeline?
body: <p>I have a RoR app that uses lots of individual .less files to build my styles. I have one master .less file (config.less) that has variables that other files use. I can manually go through each of these child files and add <code>@import</code> statements, but I have quite a few, and this doesn't seem like the best way. Is there a standard way of setting a certain order if I'm using <code>*= require_tree .</code>?</p>
  
  <p>I've tried to include require it above <code>require_tree</code> with</p>
  
  <pre><code>...
  *= require 'less/config'
  *= require_tree .
  </code></pre>
  
  <p>but I still get an error in a subsequent .less file complaining that it can't find a value in <code>config</code></p>
  
  <pre><code>variable @base is undefined
    (in /Users/me/project/app/assets/stylesheets/less/mixins.less)
  </code></pre>