Asset loading fixes

Created on 23 July 2025, 10 days ago

Problem/Motivation

I was encountering issues with asset load order and duplicate files.

For example, the theme reset was breaking styles because it was loaded after them.

Steps to reproduce

Looks like it's caused by the way unocss and it's styles were loaded.

Originally, there was a unocss.js file that loads unocss and a css file that just had @unocss. This was in a drupal library that was a dependency of the base library. The problem was that when the css was loaded by the uno, it gets loaded at the end of the body and overrides everything.

Proposed resolution

This patch helped with the order, but I'm not sure if it was necessary for this improvement.
https://www.drupal.org/project/vite/issues/3468963 πŸ› Dev server doesn't respect Drupal's CSS organization (SMACSS) Active

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024