Okay so I've been searching all over for some input into this but haven't found anything to help directly (only mentions of this problem in relation to something else).
Basically I'm having problems with the path assetic generates when looking for an assetic file versus what is actually generated.
The path it's trying to load is: /js/admin_part_1.js whereas the file it is generating is simply /js/admin.js
I am dumping files with:
php app/console assetic:dump --env=prod --no-debug
Relevant portion of the config.yml:
assetic:
debug: "%kernel.debug%"
use_controller: false
filters:
cssrewrite: ~
assets:
admin_js:
inputs:
- @UserBundle/Resources/js/admin-tools.js
output: js/admin.js
Loading the javascript tag via:
{% javascripts '@admin_js' output='js/admin.js' %}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
My question is, where is this phantom _part_1 coming from and how can I tell it stop adding it in?
$kernel = new AppKernel('prod', true);
- I since removed the ,true line but you could also get around it by getting rid of the --no-debug flag on the dump command. – Xenomorphic