lessphp compiles LESS CSS comments at one spot

202 Views Asked by At

So when I compile my .less file can those comments be somehow skipped/removed? Because now it looks ridiculous. All the comments are mashed up at the top of the .css file.

I use Drupal 7, Bootstrap 3.0.0, LESS preprocessor module for D7 and lessphp library.

In the lessc.inc.php I find only one line with setPreserveComments:

public function setPreserveComments($preserve) {
    $this->preserveComments = $preserve;
}

It doesn't match the documentations at http://leafo.net/lessphp/docs/#preserving_comments

1

There are 1 best solutions below

2
On BEST ANSWER

Comments should be automatically removed, however, if they're showing up, maybe the compiler is setting setPreserveComments to true, find it and comment it out.