less is css pre processor which very much reduces the css development time. less to css conversion is one of the important development activity. gulp provides `gulp-less` plugin for this process.
Installation
npm install gulp-less
Sample Code
'use strict';
var gulp = require('gulp');
var sass = require('gulp-less');
gulp.task('less', function () {
return gulp.src('./less/**/*.less')
.pipe(less())
.pipe(gulp.dest('./css'));
});
gulp.task('less:watch', function () {
gulp.watch('./less/**/*.less', ['sass']);
});
Comments-
(March 4, 2023 - 2:25 pm)
-
(August 13, 2023 - 11:02 am)
-
(August 15, 2023 - 4:54 am)
IDM
I used to be able to find good information from your blog
articles.
Ronnie Radon
With thanks! Valuable information!
Effie Shimada
I’m quite certain I’ll learn lots of new stuff right