Symfony Assetic watch: Only process changed files in debug

454 views Asked by At

I use this code to include my less files:

{% stylesheets "@MyBundle/Styles/*.less" %}
 <link href="{{ asset_url }}" rel="stylesheet"/>
{% endstylesheets %}

If I use the dump/watch command this compiles all less files on a change. In production / no-debug mode this is fine because the files get combined in a single file.

In dev mode the files are served individual for easier debugging. Nevertheless all files are always recompiled (even if just a single file has changed) which slows down development a lot for me.

So is it possible to recompile only the changed files in dev/debug mode?

1

There are 1 answers

0
Rob On BEST ANSWER

Because I had some more problems with assetic I ended up by completely replacing it by gassetic which is based on gulp and has a lot of advantages (see readme on github)...