tasks/less.js
function processDirective(list, directive) {
      _(options.paths).forEach(function(filepath) {
        _.each(list, function(item) {
          item = path.join(filepath, item);
          console.log(item);
          grunt.file.expand(grunt.template.process(item)).map(function(ea) {
            importDirectives.push('@import' + ' (' + directive + ') ' + '"' + ea + '";');
          });
        });
      });
      console.log(importDirectives);
    }
function processDirective(list, directive) {
      _(options.paths).forEach(function(filepath) {
        _.each(list, function(item) {
          item = path.join(filepath, item);
          console.log(item);
          grunt.file.expand(grunt.template.process(item)).map(function(ea) {
            importDirectives.push('@import' + ' (' + directive + ') ' + '"' + ea + '";');
          });
        });
      });
      console.log(importDirectives);
    }
function processDirective ( list , directive ) { _ ( options . paths ) . forEach ( function ( filepath ) { _ . each ( list , function ( item ) { item = path . join ( filepath , item ) ; console . log ( item ) ; grunt . file . expand ( grunt . template . process ( item ) ) . map ( function ( ea ) { importDirectives . push ( '@import' + ' (' + directive + ') ' + '"' + ea + '";' ) ; } ) ; } ) ; } ) ; console . log ( importDirectives ) ; }
Prepare import directives to be prepended to source files
Prepare import directives to be prepended to source files