libsass icon indicating copy to clipboard operation
libsass copied to clipboard

Multiline custom properties stay multiline in compressed mode

Open ffoodd opened this issue 6 years ago • 1 comments

Hi there,

While working on #30 in Chaarts I came across an issue when minifying output: custom properties which content is multiline aren't minified.

I made a dedicated Sassmeister.

After playing things around, it seems it's related to LibSass (not quite sure about node-sass directly, but that was what I used).

The exact same code minifies as intended with Dart Sass.

ffoodd avatar Feb 14 '20 14:02 ffoodd

That's for the report. No semantic output differences like white spaces, and new lines are very low priority.

We recommend not relying on compressed output and instead using a dedicated case minifier for best results.

xzyfer avatar Feb 15 '20 07:02 xzyfer