cloudhead/less.js — pull request #709 by dominicbarnes (2012-03-13 15:38:04+00:00)
Title: Easier Environment Override

In response to #75, I've allowed the browser `env` to be set by a global var `LESS_ENV`.

I know the use of a global is not ideal, but this is pretty much only for development since production is the default. The reason I need this is because Less won't automatically pick up that I'm in development mode simply because I use a hostname other than localhost for local development at work.

My only other option is to run this script before including less.js:

var less = { env: "development" };

This works, but this is much simpler:

var LESS_ENV = "development";