Timeline for Override a single JavaScript file from a module
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 15, 2019 at 9:32 | comment | added | devunder |
When the library name contains a dot just use the full name like so libraries-override: lightgallery/lightgallery.load:
|
|
Sep 14, 2018 at 0:54 | comment | added | mlncn | @ñull you may, but do not need to, define a library in a mythemename.libraries.yml file. As long as the target path given is relative to your theme root, you can make this override work just by creating the one overriding file, and the above (minus the 'libraries' section) in your *.info.yml. | |
Sep 12, 2018 at 12:39 | comment | added | ñull | What to do if the module / theme has no own libraries? I tried putting an empty library in info.yml but that does not include the override. | |
May 20, 2016 at 13:44 | vote | accept | mlncn | ||
May 8, 2016 at 16:19 | comment | added | mlncn | I updated drupal.org/theme-guide/8/assets to be a bit clearer about both files in contributed modules and the location of the override definition itself. | |
May 8, 2016 at 16:17 | history | answered | mlncn | CC BY-SA 3.0 |