I have jQuery installed with composer.
Now jQuery is in vendor/components/jquery
directory.
I've tried to include that in /app/config/config.yml
assetic:
debug: "%kernel.debug%"
use_controller: false
filters:
cssrewrite: ~
assets:
jquery: %kernel.root_dir%/../vendor/components/jquery/jquery.min.js
If I run the command:
php app/console assetic:dump
I get
[RuntimeException]
The source file "/home/user/project/app/current/app/../web/vendor/components/jquery/jquery.min.js" does not exist.
Cause assetic is still looking in the /web/
directory which is wrong. How can I change it so it will look in the /vendor/
directory? Also I don't want to put the jquery files in the public bundle folder cause that would brake all the sense of getting the right versions of vendor libraries via composer.