Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently the only way to install the LESS library via composer is running the composer directly on the module's folder. Most of the projects who uses composer on D7 orchestrates it via composer_mananger module.
http://cgit.drupalcode.org/less/tree/includes/less.libraries.inc#n188
It should have a way to determinate a different location for the libraries.
Comment | File | Size | Author |
---|---|---|---|
#2 | less-support_composer_manager-2847108-1.patch | 582 bytes | gabrielmachadosantos |
Comments
Comment #2
gabrielmachadosantos CreditAttribution: gabrielmachadosantos at CI&T for Pfizer, Inc. commentedI've created a patch to allow other modules to add more libraries' paths to the LESS library.
Inside _less_libraries_determine_location() functions:
You can easily create the example hook below on your custom module:
Patch applied: