Skip to content
Snippets Groups Projects
Commit 39612fd0 authored by Matt Glaman's avatar Matt Glaman
Browse files

hack in a fix to describe solution

parent 3009aa41
No related branches found
No related tags found
1 merge request!11633Dependent stylesheets are output in the wrong order
......@@ -222,6 +222,14 @@ public function getCssAssets(AttachedAssetsInterface $assets, $optimize, ?Langua
$definition = $this->libraryDiscovery->getLibraryByName($extension, $name);
foreach ($definition['css'] as $options) {
$options += $default_options;
// @todo Only modify the group if it's a theme library being added as
// as a dependency. However, there is no way to know if a theme
// library was added via a dependency at this point.
if ($library === 'sdc_theme_test/css_load_order_dependent') {
$options['group'] = CSS_AGGREGATE_DEFAULT;
}
// Copy the asset library license information to each file.
$options['license'] = $definition['license'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment