I am developing a website on a remote server using the JS compiler for LESS.
This compiler seems to only display error messages when viewing the site locally. However, when connecting from a remote location the error is not displayed.
While I appreciate the reason behind this I am wondering if less.js can be configured to always display its error messages.
Cheers!
I just had a look in the less.js file and noticed that the adding of the error message depends on the d.env var being set to ‘development’. Further down there’s a bit that sets that property to ‘development’ if location.hostname indicates localhost. By changing this to always be true, errors will always display.