Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed: https://github.com/appden/less.tmbundle and the lessc compiler and it seems to work (no errors) but I don't see a compiled .css file.

Any ideas?

share|improve this question
up vote 1 down vote accepted

To change the filename from less > css, just use a simple replacement:

system("lessc --verbose \"#{file}\" \"#{file.gsub(/less$/, 'css')}\"")

Leaving the verbose flag will result in a nice feedback message stating your file has been saved to xxx.css.

share|improve this answer

I edited the bundle command to this:

#!/usr/bin/env ruby
file = STDIN.read[/lessc: ([^*]+\.less)/, 1] || ENV["TM_FILEPATH"]
system("lessc \"#{file}\" \"#{file}.css\"")

And now it works. But it saves a file (sample.less) to sample.less.css which is ok but not ideal.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .