'use strict';

module.exports = function(grunt)
{
  grunt.loadNpmTasks('grunt-contrib-less');

  // load all grunt tasks
  grunt.initConfig({
    less: {
      development: {
        options: {
          strictImports: true
        },
        files: {
          "css/style.css": "less/style.less"
        }
      }
    }
  });
}
'use strict';

module.exports = function(grunt)
{
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // load all grunt tasks
  grunt.initConfig({
    watch: {
      styles: {
        files: ['**/*.less'],
        tasks: ['less'],
        options: {
          spawn: false,
        },
      },
    },
    less: {
      development: {
        options: {
          strictImports: true
        },
        files: {
          "css/style.css": "less/style.less"
        }
      }
    }
  });
}
Use watch to watch the directory for changes to the less files
Use watch to watch the directory for changes to the less files
