I'm working on a symfony2 project and all the js and css files are served from the compiled version under /assets/compiled/frontend_site_2.css /assets/compiled/frontend_jscript_2.js and the actual version of these files are under
src\projectname\Bundle\WebBundle\Resources\assets\js\jscript.js src\projectname\Bundle\WebBundle\Resources\assets\css\site.js
I want the view to render these urls instead of compiled versions, right now I 've to dump these files by running this cmd php app/console assetic:dump --watch I don't want to run this command after every single modication, is it possible?
frontend/javascript_block.htm.twig file
{% javascripts output='assets/compiled/frontend.js'
'@projectNameWebBundle/Resources/public/js/jscript.js'
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
Thanks
assets:install web --symlinkdon't solve your problem?