Libraries directory is relative to which root directory?

Created on 28 July 2021, almost 3 years ago
Updated 23 September 2023, 9 months ago

Problem/Motivation

The root directory of "/libraries" is not clear in bootstrap_barrio_subtheme.libraries.yml

It's not clear if the "libraries" directory is found within the theme's root directory:

example.com/web/themes/custom/my_bootstrap_barrio_subtheme/libraries

or within the 'web' directory

example.com/web/libraries

File: my_boostrap_barrio_subtheme.libraries.yml

bootstrap:
  js:
    /libraries/popper/popper.min.js: {}
    /libraries/bootstrap/dist/js/bootstrap.min.js: {}

Steps to reproduce

Read *.libraries.yml
Check where the current libraries directory is.
Run code to see if bootstrap library is found.

Proposed resolution

Clarify intended location of the library directory.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: outdated

Version

5.5

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States TomSherlock

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024