Open qaharmdz opened 8 years ago
It would be awesome if we have loadVariables($file) to load variable file(s)
$less = new lessc;
$less->loadVariables($path . 'less/variable.less'); // @font-color: #111
$less->setVariables(array(
'font-color' => '#333,
));
$less->compileFile($path . 'less/test.less', $path . 'test.css');
// LESS
body {
color: @font-color;
}
// Output
body {
color: #333;
}
Wow. It's been almost 2 years and no response at all :open_mouth: I guess it's not possible to callsetVariables
first and then compile file with those variables/values.
My code
I'm expecting the body color to be 333
Any help is appreciated