public
Last active

LessCSS Build System for Sublime Text 2

  • Download Gist
Less Compile.sublime-build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/**
* 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"

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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.