You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All components have the CSS_AGGREGATE_DEFAULT group, and must have CSS_AGGREGATE_THEME. The CSS files of the components are loaded before the CSS files of the theme. This is a big mistake! So far, the solution to the problem is the following. Now i use hook_css_alter
function hook_css_alter(&$css, \Drupal\Core\Asset\AttachedAssetsInterface $assets) {
foreach ($css as $path => $item) {
if (preg_match("/templates\/patterns/", $path)) {
$css[$path]['group'] = CSS_AGGREGATE_THEME;
}
}
}
The text was updated successfully, but these errors were encountered:
I would be interested if there is any reasoning behind the module behavior. I could think of that components can live in modules or themes so it would probably not appropriate to set component css always to theme.
All components have the CSS_AGGREGATE_DEFAULT group, and must have CSS_AGGREGATE_THEME. The CSS files of the components are loaded before the CSS files of the theme. This is a big mistake! So far, the solution to the problem is the following. Now i use hook_css_alter
The text was updated successfully, but these errors were encountered: