Less.app for Windows (Sort of)
After recently purchasing my first Mac, I decided I wanted to sync my Mac and Windows workflow. The Less.app app for Mac is amazing for compiling your Less files the instant you save them. Unfortunately, there was no Less.app equivalent for Windows...until now!...sorta. (This may have already been done before, but I seriously couldn't find anything after an hour of Googling).This Script is No Longer Needed!
I'm happy to announce that the web dev community has finally come together and produced GUI implementations of Less.app for Windows. The previous version of the article follows below. Now all that's left for you to do is get your ass off Windows and start working in a unix environment ;)Check out SimpLess, and WinLess UPDATE: I've verified that this actually works for Ubuntu as well! Follow this guide to install node.js on Ubuntu
Guide Overview
- Purpose: Allow Windows users to compile less files into css upon file save
- Time Needed: 20 minutes
- Computer Skill Level Recommended: Intermediate
Less.app for Windows Instructions
So our "less.app" will simply be a command line job that monitors your less files. First, you'll need to snag the latest Node.js Windows binaries. (If you don't have 7-Zip, you'll need it to extract the files).



Configuration
The rest of the tutorial and the code itself assumes you have the following file structure for your projects:css/ less/ images/ file1.html file2.htmlMost importantly, your less directory and your css directory should be "sibling" directories.



Compiling Less to CSS
Now we're finally ready to compile our Less to CSS! Open your less directory in the command prompt. (See a shortcut HERE)
node less.jsThe module first compiles all .less files in the directory to css, and outputs the css file in the css directory. Next, as long as you leave the command prompt open, the module listens for any more changes to any of the .less files. Once it detects a change, it automatically compiles and updates the css file. To stop the module, use CTRL + c.
