Hacker News new | ask | show | jobs
by gerrit 5340 days ago
If youre using less.js, there's no need to write custom code to auto refresh the CSS, it has that feature built in:

  <link rel="stylesheet/less" href="/stylesheets/main.less" type="text/css" />
  <script src="http://lesscss.googlecode.com/files/less-1.0.21.min.js></script>
  <script type="text/javascript" charset="utf-8">
    less.env = "development";
    less.watch();
  </script>