Google News
logo
Sass - Interview Questions
How can you set code in a watch mode while running LESS.js in an HTML5 browser?
When you run the LESS.js in an HTML5 browser, it uses local storage to cache the generated CSS. However, the developers cannot see the changes they made instantly. In order to see the changes you made instantly, you can load program in development and watch mode by using following JavaScript :
<script type= "text/javascript">  
   less.env = "development " ;  
   less.watch () ;  
</script>
  
<script type= "text/javascript">  
   less.env = "development " ;  
   less.watch () ;  
</script>​

 

  
Advertisement