I follow this article https://www.8host.com/blog/nachalo-raboty-s-gulp-js/ to configure gulp.js for ubuntu. When I enter "gulp styles" a TypeError: glob pattern string require error TypeError: glob pattern string require . What am I doing wrong?

My gulpfile.js

 var gulp = require('gulp'), sass = require('gulp-ruby-sass'), autoprefixer = require('gulp-autoprefixer'), minifycss = require('gulp-minify-css'), rename = require('gulp-rename') gulp.task('styles', function() { return gulp.src('sass/*.scss') .pipe(sass({ style: 'expanded' })) .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1')) .pipe(gulp.dest('css')) .pipe(rename({suffix: '.min'})) .pipe(minifycss()) .pipe(gulp.dest('css')); }); 

enter image description here

  • variables need to be closed, look at the rename line, maybe this is the problem. And here's another: stackoverflow.com/questions/34629296/… - sagan
  • Try to remove the line and run .pipe(sass({ style: 'expanded' })) . There is no style option in the gulp-ruby-sass plugin documentation , maybe because of this error, a lesson in which you do a year ago, so it is likely that it could be removed. - greybutton

0