Grunt won't process lesscss file

I am trying to concatenate a set of .less files into a big .less file, and then have it processed into a big .css file using Grunt's grunt-contrib-less module.

module.exports = function(grunt) {

    require('load-grunt-tasks')(grunt);

    grunt.initConfig({
        concurrent: {
            target1: ['concat:lesscss'],
            target2: ['less']
        },        
        concat: {
            lesscss: {
                files: {
                    'server/static/css/big.less':
                        ['server/static/css/commons-reset-and-core.css',
                         'server/static/css/base.less',
                         'server/static/css/ads.less',
                         'server/static/css/ext.less']
                }
            }
        },
        less: {
            files: {
                'server/static/css/big.css':
                    'server/static/css/big.less'
            }
        }
    });

    grunt.registerTask('default', ['concurrent:target1', 'concurrent:target2']);

};

The big.less is created properly, but the big.css file is not. Yet, Grunt returns

Done, without errors.

What am I doing wrong?

Answers


Did you try to wrap it as here:

less: {
    development: {
       files: {
           'server/static/css/big.css': 'server/static/css/big.less'
       }
    }
},

I think that's required


Need Your Help

How to create refresh statements for TableAdapter objects in Visual Studio?

visual-studio tableadapter dataprovider

I am working on developing an ADO.NET data provider and an associated DDEX provider. I am unable to convince the Visual Studio TableAdapater Configuration Wizard to generate SQL statements to refr...