I want to generate .css partial files from the corresponding .less files
I use the latest versions available from npm, grunt@0.4.0 , grunt-contrib-less@0.5.0
Prior to Grunt 0.4, you can simply specify a template:
htdocs/less/*.less as a source
htdocs/css/*.css as the destination
and all files from the htdocs/less folder will be generated in the htdocs/css folder
Since the v0.4 destination pattern no longer works, all files from the htdocs/less folder htdocs/less merged into a single file named *.css
How can I set up a task so that it generates all the files and then combining them into a single file.
I do not want to list files individually.
Could not find an answer in the Grunt documentation http://gruntjs.com/configuring-tasks#files
Thanks.
My Gruntfile.js (extract):
module.exports = function (grunt) { grunt.initConfig({ less: { development: { files: { "htdocs/css/*.css": "htdocs/less/*.less" } } }, }); };
source share