mirror of
https://github.com/less/less.js.git
synced 2026-02-04 03:55:10 -05:00
(api) custom port == development mode
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user