gulp sass

sass is css pre processor which very much reduces the css development time. sass to css conversion is one of the important development activity. gulp provides `gulp-sass` plugin for this process.



 npm install gulp-sass --save-dev  

Sample Code

 'use strict';  
 var gulp = require('gulp');  
 var sass = require('gulp-sass');  
 gulp.task('sass', function () {  
  return gulp.src('./sass/**/*.scss')  
 gulp.task('sass:watch', function () {'./sass/**/*.scss', ['sass']);  

Sarav Author

Leave a Reply

Your email address will not be published. Required fields are marked *