- Issue created by @joegraduate
- Merge request !3Issue #3502646 by joegraduate: Add local library discovery, CDN library definition as fallback β (Open) created by joegraduate
Currently this module defines two Drupal library definitions for the noUIslider JS library:
This forces developers wanting to use noUIslider in their project(s) to have to choose between the local copy packaged with this module or the CDN version and also forces them to use the version defined by this module.
It would be better for this module to:
LibrariesDirectoryFileFinder
service in a hook_library_info_alter()
implementation that replaces the CDN references in the library definition with the local copy of the library if one is found.This would follow the "Load local library first, use CDN as fallback" approach described in the d.o. documentation for *.libraries.yml β .
Active
1.0
Code