Google News
logo
Less - Interview Questions
Explain how can set code in a watch mode when you run LESS.js in an HTML5 browser?
If you run LESS.js in an HTML5 browser, it will use local storage to cache the generated CSS. However, from the developer point of view they cannot see the changes they made instantly. In order to see your changes instantly, you can load program in development and watch mode by following JavaScript
 
<script type= "text/javascript">
   less.env = "development " ;
   less.watch () ;
</script>

 

Advertisement