LightningCSS compression not working
Closed this issue · 4 comments
J05HI commented
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 commented
@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',
},
})
NikolaRHristov commented
It's not released yet, expect in the next version v2.3.0
.
J05HI commented
@NikolaRHristov
Okay. Thanks for the info.
NikolaRHristov commented