3

I have a web project I'm working on and it is using LESS to combine all the files into one CSS for me. However I obviously don't want the client side javascript to have to run in production as that is going to slow things down.

Is there a way with the client-side less.js that it can export the .less files you give it to a single CSS file, which I could then call in my live environment?

diggersworld
  • 12,770
  • 24
  • 84
  • 119

2 Answers2

2

You have a couple of options for this that I know of:

  1. Use the LESS command line tool
  2. If you're on a Mac, use LESS.app

Running a watch command isn't that big of a deal, it becomes second nature quite quickly :)

Rowan
  • 5,597
  • 2
  • 22
  • 32
  • From what I have seen there is no way to export the CSS from the client side less.js library. So I'm accepting this answer as the LESS command line option is suggested with the original documentation. – diggersworld Jul 30 '12 at 11:27
0

Since you want a non-command line option, I'd recommend LESS.app if you're running OS X. If not, try Simpless (cross-platform) or Crunch (Adobe Air-based).

PS. They're all free!

spinningarrow
  • 2,406
  • 22
  • 32