Skip to content
Create a gist now

Instantly share code, notes, and snippets.

LessCSS Build System for Sublime Text 2
* Basic LessCSS Build System for Sublime Text 2
* Prerequisites: node.js, global lesscss node module
* How it works:
* 1. Create the folders "src/css" and "assets/css" in your project root
* 2. Put all your .less files into "src/css"
* 3. Open your main .less file and hit "Build"
* 4. Dance happily around your minified and compiled CSS file in "assets/css"
* 5. Profit
"cmd": ["/usr/local/bin/lessc", "-x", "$file", "${file_path}/../../assets/css/${file_base_name}.css"],
"path": "/usr/local/bin",
"selector": "source.less"

The selector is wrong, should be:

"selector": "source.css.less"
druu commented Feb 9, 2012

I don't have any .css.less files... .less only ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.