From 0d98d2401ac2164b233df6dbe7ec5b289e77847e Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 14 Jun 2010 21:07:38 -0400 Subject: [PATCH] (api) custom port == development mode --- lib/less/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index e6937ba0..60119e6a 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -7,7 +7,8 @@ var sheets = []; less.env = location.hostname == '127.0.0.1' || location.hostname == '0.0.0.0' || location.hostname == 'localhost' || - location.protocol == 'file:' ? 'development' + location.protocol == 'file:' || + location.port.length > 0 ? 'development' : 'production'; less.watch = function () { return this.watchMode = true };