title: Symfony 2 split less file
body: <p>I am building a website with Symfony 2 and using Less, like this</p>
  
  <p>index.html.twig:</p>
  
  <pre><code>{% stylesheets
      '@AcmeWebappBundle/Resources/public/css/website.less'
      filter='?yui_css'
  %}
  &lt;link rel="stylesheet" href="{{ asset_url }}" /&gt;
  {% endstylesheets %}
  </code></pre>
  
  <p>config.yml:</p>
  
  <pre><code>assetic:
      filters:
          lessphp:
              file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php
              apply_to: "\.less$"
  </code></pre>
  
  <p>Now the file <code>website.less</code> was growing a lot so I decided to split it into different files, like this:</p>
  
  <pre><code>{% stylesheets
      '@AcmeWebappBundle/Resources/public/css/mixins.less'
      '@AcmeWebappBundle/Resources/public/css/general.less'
      '@AcmeWebappBundle/Resources/public/css/tasks.less'
      '@AcmeWebappBundle/Resources/public/css/notes.less'
      filter='?yui_css'
  %}
  &lt;link rel="stylesheet" href="{{ asset_url }}" /&gt;
  {% endstylesheets %}
  </code></pre>
  
  <p>The file <code>mixins.less</code> contains all the <code>mixins</code> I use across the other files.</p>
  
  <p>The problem is that if I reference a mixin in <code>notes.less</code>, that is not recognised - I believe that is because Assetic seaches for mixins only inside the file it is compiling.
  By the way, I am using lessphp, not node.js.</p>
  
  <p>How can I solve my problem? How can I have different Less files using mixins declared in the mixins.less file?</p>