Skip to content

Instantly share code, notes, and snippets.

@druu
Created November 8, 2011 09:57
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save druu/1347392 to your computer and use it in GitHub Desktop.
Save druu/1347392 to your computer and use it in GitHub Desktop.
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"
}
@AbeEstrada
Copy link

The selector is wrong, should be:

"selector": "source.css.less"

@druu
Copy link
Author

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