By jibran on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.0-alpha1
Issue links:
Description:
After adding support for external stylesheets the library definitions can have a Drupal root URL for CSS/JS assets.
Stylesheets that aren't external and use a '/' as the first character are assumed to be Drupal root relative (this what LibraryDiscoveryParser does).
Before
# your_theme.info.yml
ckeditor_stylesheets
- //www.external.com/stylesheet.css
- css/stylesheet.css
After
# your_theme.info.yml
ckeditor_stylesheets
- //www.external.com/stylesheet.css
- /libraries/your-library/stylesheet.css
- css/stylesheet.css
The use case for this is to include CSS assets from outside the theme directory (i.e. the libraries directory).
Impacts:
Module developers
Themers