Client-side LESS not working and not displaying errors

Ran into an issue with client-side LESS seemingly not working, at all.

Apparently, (1) if there’s a syntax error in your .less file, it won’t compile and (2) error messages are turned off by default.

Solution: add this before including LESS javascript file:

<script type="text/javascript">less = { env: 'development' };</script>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>