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:
- Compiles LESS
- Auto-prefixes styles
- Minifies compiled styles
The compilation procedure for non --production:
- Compiles LESS
- Builds source maps
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);