Load multiple grunt configuration files
npm install load-grunt-configuration --save-dev
module.exports = function (grunt) {
    'use strict';
   require('load-grunt-configuration')(grunt, {
        files: [
            '_tasks',
            'styles',
            //...
        ],
        otherOptions: {
            foo: 'bar'            
        }
    });
};module.exports = function (grunt) {
    'use strict';
    grunt.registerTask('dev', [
        'styles',
    ]);
    grunt.registerTask('default', [
        'dev',
        'watch'
    ]);
};module.exports = function (grunt) {
    'use strict';
    // Task
    grunt.registerTask('styles', [
        'less:dev',
        'autoprefixer:dev'
    ]);
    // Config
    return {
        autoprefixer: {
            // ...
        },
        less: {
            // ...
        },
        watch: {
            // ...
        }
    };
};require('load-grunt-configuration')(grunt, options);
List of configuration files to load. Relative to gruntConfigFolder. Without '.js' extension.
Example:
[
    '_tasks',
    'styles'
]
Folder containing grunt configuration files to load.
Default : 'grunt-config'
Path to package.json file.
Default : 'package.json'
options object is merged into grunt.config.
require('load-grunt-configuration')(grunt, {
    files : ['example'],
    path: {
        src: './src'
    }
}});
Read src value :
<%= path.src %>
Run tests
grunt test