gulpgulp-ruby-sass

gulp sass is not working showing error


enter image description here

showing me this error don't know how to resolve it.

my gulpfile.js code is as follow

var gulp = require('gulp'),
uglify = require('gulp-uglify'),
sass = require('gulp-ruby-sass');
gulp.task('default', function(){
   gulp.src('js/*.js')
   .pipe(uglify())
   .pipe(gulp.dest('minjs'));
});
//style task
gulp.task('styles', function(){
   gulp.src('scss/**/*.scss')
   .pipe(sass())
   .pip(gulp.dest('css/'));
});

Solution

  • If this hasn't been resolved there is a spelling mistake in the styles task. On the last line it says:

    pip(gulp.dest('css/'));

    I assume this needs to be:

    pipe(gulp.dest('css/'));

    Give that a try :)