There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-abf331ca-d9ff-4db9-baa3-bcc31a15785b XWIKI-19937 Open

Replace yuicompressor-maven-plugin

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-133fc3ec-c45c-41df-87a7-3e085d9f8ab2 Carlos Amengual on 19/Jan/26 13:34
 

Considering all of the CSS minifiers in any computer language, only two support current CSS. Minifiers typically struggle with the following features:

  1. Nesting.
  2. Relative color syntax.
  3. @supports rules, especially if they contain selectors.
  4. Advanced attr() values with the type() function.
  5. The if() function.

Only the css4j minifier supports all of them, while the Rust-based Lightning CSS can handle the first three (it is based on Firefox crates). Both lack a Maven plugin.

None of the other minifiers/plugins is even close to that level of CSS support, and if you are waiting for them to implement it you could wait forever.

You may want to consider moving away from a Maven plugin approach.