Compress icon indicating copy to clipboard operation
Compress copied to clipboard

LightningCSS compression not working

Open J05HI opened this issue 2 years ago • 3 comments

The shorthand compression of LightningCSS is not working: https://lightningcss.dev/minification.html#shorthands

.myclass { border-width:0; border-style:solid; border-color:#e5e7eb; } gets compressed to .myclass{border-width:0;border-style:solid;border-color:#e5e7eb} It should instead be compressed to .myclass{border:0 solid #e5e7eb}

J05HI avatar Dec 05 '23 14:12 J05HI

@NikolaRHristov Any news on this? My astro integration config:

compress({
  CSS: {
      csso: false,
      lightningcss: {
          minify: true,
      },
  },
  HTML: true,
  Image: true,
  JavaScript: true,
  SVG: true,
  Parser: {
      CSS: 'lightningcss',
  },
})

J05HI avatar Dec 19 '23 07:12 J05HI

It's not released yet, expect in the next version v2.3.0.

NikolaRHristov avatar Dec 19 '23 08:12 NikolaRHristov

@NikolaRHristov Okay. Thanks for the info.

J05HI avatar Dec 19 '23 16:12 J05HI

@J05HI Fixed in the latest astro-compress v2.2.24 and @playform/compress v0.0.6 Can you give it a go ?

NikolaRHristov avatar May 24 '24 21:05 NikolaRHristov