hej I got idea to compile lesscss files while building my project with maven.
looking at lesscss site it is possible to compile those files referencing them in head section of html file like this
<link rel="stylesheet/less" type="text/css" href="styles.less">
<script src="less.js" type="text/javascript"></script>
phantom’s script can access any file on local hard drive so it should be possible to loop over *.less files. now the question is how to compile those files and save them back with css extension.
the pity is that command line is available only when installed to node (or maybe I wrong??)
thanks for any hint
well after giving it a second try I created this script
it should print parsed css to console