Compress
Compress copied to clipboard
LightningCSS compression not working
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}
@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',
},
})
It's not released yet, expect in the next version v2.3.0.
@NikolaRHristov Okay. Thanks for the info.