Simple fix to lessc missing watch

Less does not have a watch function, as scss have.

Install grunt:

npm install grunt grunt-contrib-watch grunt-contrib-less

Gruntfile.js:

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    less: {
      dist: {
        options: { compress: true },
        files: {
          'css/stil.css': 'css/stil.less',
        },
      },
    },
    watch: {
      less: {
        files: 'css/stil.less',
        tasks: 'less',
      },
    },
    
  });

  // Load plugins
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task(s).
  grunt.registerTask('default', ['watch:less']);

};