You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
qaharmdz
changed the title
How to load default variables that override by setVariables ?
How to load variables file that overrided by setVariables ?
Jan 30, 2016
Wow. It's been almost 2 years and no response at all 😮 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
The text was updated successfully, but these errors were encountered: