How to move Lesscss files outside the public symfony web directory?
<p>With Symfony 3, I'm using Assetic filters to process my <code>.less</code> files, and I simply want to know how to move them outside the <code>/web</code> directory, for example from <code>/web/css</code> to <code>/app/Resources/less</code>.</p>

<p>Indeed, in twig templates I don't know how to give the right location.</p>

<p>I'm using a basic Assetic config:</p>

<pre><code>assetic:
    debug:          '%kernel.debug%'
    use_controller: '%kernel.debug%'
    filters:
        cssrewrite: ~
        less:
            node: /usr/bin/node
            node_paths: ['/usr/local/bin/node_modules']
</code></pre>

<p>Let's say I have this simple Less file, currently located at <code>/web/css/test.less</code>:</p>

<pre class="lang-less prettyprint-override"><code>@color : orange;

body {
    background-color : @color;
}
</code></pre>

<p>Then, if I want to generate the link to the processed stylesheet, I'm doing like this in an HTML template:</p>

<pre class="lang-html prettyprint-override"><code>&lt;!doctype html&gt;
&lt;html&gt;
    &lt;head&gt;
        [ ... ]

        {% stylesheets 'css/test.less' filter="less" output='css/test.css' %}
            &lt;link rel="stylesheet" href="{{ asset_url }}" /&gt;
        {% endstylesheets %}

    &lt;/head&gt;
    &lt;body&gt; &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>So, if I move <code>/web/css/test.less</code> to <code>/app/Resources/less/test.less</code>, what should I give instead the <code>#####</code> below ?</p>

<pre><code>        {% stylesheets '#####' filter="less" output='css/test.css' %}
</code></pre>