I am using this gruntfile to change my .less file to .css files.
module.exports = function (grunt) {
grunt.initConfig({
less: {
development: {
files: [{
expand: true,
cwd: 'assets/less',
src: ['*.less'],
dest: 'wwwroot/content/css/',
ext: '.css'
}]
},
production: {
files: {
"wwwroot/content/css/script.css": ["assets/less/*.less"]
},
options: {
cleancss: true
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-less");
};
For my development build if I have ten .less files then this will create ten .css files and then I will be able to view these in the Chrome Development Tools and easily debug.
The reason I am doing this is so that I will be able to debug and look at those ten .css files in the Chrome development tools.
Is my reasoning correct? I heard about source maps but how could I use these in my development build and if I used these then would I still be able to see the source .css file names or even better the ten .less files?