V
V
Vladimir2019-09-18 13:50:50
JavaScript
Vladimir, 2019-09-18 13:50:50

Why does gulp give Compilation failed?

Good afternoon. I'm new in this business. According to the lesson, it was to install the gulp-sass plugin, a lot of errors flew out during its installation, I tried gulp-scss - it seems to work. But I get the following.
5d820bda78f7c469680286.jpeg
Please help. Here is the code:

const gulp = require('gulp');
const rename = require('gulp-rename');
const scss = require('gulp-scss');

function streamTask() {
  return gulp.src('./scss/style.scss')
   .pipe(scss({
   	 errorLogToConsole: true
   }))
   .on('error', console.error.bind(console))
    .pipe(rename({suffix: '.min'}))
    .pipe(gulp.dest('./css/'));
        
}

exports.default = streamTask;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question