sass / libsass

A C/C++ implementation of a Sass compiler
https://sass-lang.com/libsass
Other
4.33k stars 461 forks source link

Multiline custom properties stay multiline in compressed mode #3064

Open ffoodd opened 4 years ago

ffoodd commented 4 years ago

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.

xzyfer commented 4 years ago

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.