Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

4.7. Less Compilation

Using gulp-less

		
npm install --save-dev gulp-less
		
		

gulpfile.js:

		
// including plugins
var gulp = require('gulp');
var less = require("gulp-less");

// task
gulp.task('compile-less', function () {
    gulp.src('./Less/one.less') // path to your file
    .pipe(less())
    .pipe(gulp.dest('path/to/destination'));
});	
		
		

Run:

		
gulp compile-less