Sublime Forum

Custom LESS build script for twitter bootstrap

#1

So I’m using twitter bootstrap in one of my projects; however I have cloned from github and am making some custom modifications and need to compile bootstrap.less into bootstrap.css. Currently trying to define a custom build script that always builds bootstrap.less regardless of the file selected… here is what I have so far:

{
	"cmd": "lessc","$ProjectDir/src/bootstrap/less/bootstrap.less","$ProjectDir/src/bootstrap/bootstrap.css","--verbose"],
	"selector": "source.css.less",
	"path": "/usr/local/bin:$PATH"
}

However this is the error I’m getting:

[Errno 2] No such file or directory
[cmd: [u’lessc’, u’/src/bootstrap/less/bootstrap.less’, u’/src/bootstrap/bootstrap.css’, u’–verbose’]]
[dir: /Users/msencenb/NodeProjects/portfolio/basicportfolio/src/bootstrap/less]
[path: /usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin]
[Finished]

I can manually cd into the ‘dir’ it spits out so I am a little confused as to what is breaking… any help would be greatly appreciated.

0 Likes