Is there a way to override paths defined in *.libraries.yml Guess I found a bug here and already filed it:


Created custom profile,
added https://www.drupal.org/project/mmenu dependency (which then is placed under profiles/profile_name/modules/contrib/mmenu).
Added MMenu libraries (jquery.mmenu, hammer.js, jquery.hammer),
activated everything but then Drupal looks for the wrong library paths under libraries/mmenu instead of profiles/profile_name/libraries/mmenu.


libraries_get_path('mmenu') returns correct path (profiles/profile_name/libraries/mmenu).

drupal_get_profile() returns correct profile.

Drupal seems to only take the paths defined in mmenu.libraries.yml into account. Changing them makes everything work as desired. So, I'm asking myself now: Is there any possibility to override the paths defined in mmenu.libraries.yml from a custom module?
Yes, this is possible. hook_library_info_alter() is used to alter basically anything in the library definition.