- Issue created by @sproets
- πΊπΈUnited States daniel korte Brooklyn, NY
daniel korte β made their first commit to this issueβs fork.
- Merge request !629Replace non-space character with real space and use minified true on... β (Open) created by daniel korte
- πΊπΈUnited States daniel korte Brooklyn, NY
I ran into this problem in Drupal 11.2.0 and 11.2.1. There is a PHP error "Exception: Only file CSS assets with preprocessing enabled can be optimized. in Drupal\Core\Asset\CssOptimizer->optimize() (line 46 of /code/web/core/lib/Drupal/Core/Asset/CssOptimizer.php)." because gin-custom.css has
minify: false
. Drupal 11.2.1 added code to ignore files withminify: true
( π Website error Exception: "Only file CSS assets can be optimized" Active ). Since public://gin-custom.css may not be a local file it canβt be processed. Maybe it makes sense to set this to external too? - π©πͺGermany jurgenhaas Gottmadingen
I can't reproduce this issue. The custom CSS is just loading fine for me on Drupal 11.2 with optimization turned on or off, both are working as expected.
Can you please provide detailed steps on how to reproduce this on a vanilla fresh installation of Drupal?
@daniel korte I'm not following your extra observation in #5 either. The exception that you provide is independent of the minify setting and only occurs if the library setting has not proprocessing property defined. Could you please re-check and clarify?