Compile LESS files to CSS How can i preprocessor or compile at runtime the LESS files in the latest version of Drupal 8?

I am using the LESS starterkit theme of Bootstrap. The Less CSS Preprocessor is currently not ported to Drupal 8.

The next two guides says that i need NodeJS and the less package to compile it, but it is not at the runtime of Drupal:

lessc less/style.less &gt; css/style.css



Creating a Bootstrap subtheme for Drupal 8
How to build your Drupal 8 theme using Bootstrap &amp; Less
If you don't want to wait for the port of the Less CSS Preprocessor module to run the less compiler at run time, you can execute the command line tool from settings.php

exec('lessc themes/mytheme/less/style.less themes/mytheme/css/style.css &gt; /tmp/less-debug 2&gt;&amp;1');


This is only for development, remove this from the production settings.php.