Tag Info

New answers tagged


There is now much easier method. Install NodeJs. And via NPM install less-monitor https://www.npmjs.org/package/less-monitor


Use a makefile. In the directory where the files are, create a file called Makefile containing: %.css: %.less lessc $^ > $@ Then run: make Makefiles are flexible and smart. make only compiles those files which have changed. Many projects, large and small, use them to build software.


#!/bin/bash for i in *.less do lessc $i > ${i/less/css} done This assumes lowercase for .less extension. If they are not all lowercase, then the substitution expression is more complex.


for i in $(ls *.less) ; do lessc $i; done;

Top 50 recent answers are included