Assets paths in CSS no longer rewritten when aggregation is enabled

Created on 10 July 2025, 2 days ago

Problem/Motivation

The change in Add support for minified external CSS libraries πŸ› Website error Exception: "Only file CSS assets can be optimized" Active has made it so that CSS assets marked as minified no longer get URLs contained in them rewritten upon aggregation.

Steps to reproduce

  1. Define a CSS asset with minified: true which has a relative path to a font.
  2. Enable aggregation. Observe that the font does not load.
  3. Disable aggregation. Observe that the font does load.

Proposed resolution

I think the check added here should be on $css_asset['type'] rather than $css_asset['minified'].

Remaining tasks

Write a fix and update tests.

πŸ› Bug report
Status

Active

Version

11.2 πŸ”₯

Component

asset library system

Created by

πŸ‡ΊπŸ‡ΈUnited States benabaird

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