I compile .less
files into minified .css
files using gulp. There are some variables defined in the less files like this:
@error-red: #cc0000;
I want to compile PHP placeholders into the minified css files, so the variables can be filled in later by a script. Something like this:
@error-red: <?php echo $error_red; ?>;
Or even:
@error-red: php_errorred_placeholder;
But the compilation fails because this is not valid CSS. Is there some other way to do this? The changes won't necessarily all be colors, but could also be borders or other rules.
I want to do this with PHP because node.js does not run on my production server.