I already have all needed js files in web folder, when I use assetic:dump command it produces concatenated file and copies all other files two the same directory. How can I avoid this?
code in twig template:
{% block headerscripts %}
{% javascripts output='assetic/vendors_header.js'
'vendor/jquery-1.10.2.min.js'
'vendor/html5shiv.js'
%}
<script src="{{ asset('assetic/vendors_header.js' ~ assets_version) }}"></script>
{% endjavascripts %}
{% endblock %}
You added in a comment:
That's the expected behaviour in
dev
environment: files are not concatenated in order to ease debugging.Source: Symfony2 official documentation > How to Use Assetic for Asset Management> Combining Assets.