I\'m using Grunt for building my web project. I installed grunt-contrib-less package und added a task to my grunt.initConfig({..});
grunt-contrib-less
grunt.initConfig({..});
This works for me, but modified to reflect this scenario:
less: { options: { paths: ["js/base"] }, files: { expand: true, cwd: "js/base", src: ["**/*.less"], dest: "js/base", ext: ".css" } },