I use Less-PHP in development: every time I update my browser for testing after changing the main .less
, .css
.
Then in the production process I only need to copy the .css
file, as usual.
I will never use Less.js in production, because it will only work for users who have activated JS, will slow down each user for both load time and render time when it is not needed.
EDIT: There is also software that will wait for your LESS file to be modified and saved, and compile it when that happens. Again Less PHP can be configured once per project and will do the same, I donβt want to run the daemon on my system every day if I can avoid it. I already have a firewall, AV, MSN, Dropbox, jabber client, copypaste utility, built-in SVN, etc. EDIT in 2015: I used Prepros 4 for a while or instead used the grunt based compiler. My colleagues have a few bugs with Prepros 5, so I haven't installed it yet (Prepros 5 is now proprietary software, costs a few dollars. Very good investment imo)
EDIT2: It seems you are using Java. A small search query gives such a solution: http://www.asual.com/blog/lesscss/2009/11/05/less-for-java.html
source share