Skip to content
use edited this page Mar 15, 2012 · 4 revisions

To enable Watch Mode, development mode must be enabled (less.env). Development mode is set automatically, based on whether the document's URL starts with file:// or localhost.

To get around this, use the following:

<script type="text/javascript">
var less = { env: "development" };
</script>
<script type="text/javascript" src="/lib/less-1.3.0.min.js"></script>

Note that the script must be run before the less.js file is included.

This manually puts Less in development mode, and enables watch mode.