LESS

Syntax

less(paths)

Description

Compile LESS files from paths.less to paths.build. Maintains the same file names, but replacing the extention .less to .css.

The compilation procedure for --production:

The compilation procedure for non --production:

Dependencies

The CSS concatenate task should run after less has finished, if the output from less is included in the css task.

Example

var paths = {
  less: [
    'private/stylesheets/*.less'
  ],
  build: 'build/'
};

var gulp = require('gulp');
var taskMethods = require('gulpfile-ninecms');

var tasks = {
  less: function () { return taskMethods.less(paths); }
};

gulp.task('less', [], tasks.less);