0
require "lessc.inc.php";
$less = new lessc;
$css = $less->compileFile("style.less");

so I get CSS code. Is it possible to get the compiled file, but in less format?

The reason I want that is because style.less uses imports:

@import "color.less";

And I want a .less file that includes all the less code from these imports.

Anna K.
  • 1,887
  • 6
  • 26
  • 38
  • I'm confused. You want to combine all of your less files? Do it manually? –  Oct 18 '13 at 22:43
  • 3
    Can you clarify the question, please, instead of shunning my question with a multitude of dots? –  Oct 18 '13 at 22:47
  • I mean yes I want it to combine all files, and no I do not want to do it myself – Anna K. Oct 18 '13 at 23:15
  • Okay, well what is your directory structure? Can you edit your post for me? –  Oct 19 '13 at 00:42

1 Answers1

3

What you need is actually combining, not compiling (or converting into CSS, if you will).

I believe there's no specific LESS-targeted tool that does this, but with some customization you can use file combining tools like this - A PowerShell Script for Combining Files

Tigran Petrossian
  • 1,158
  • 1
  • 7
  • 16