Answer the question
In order to leave comments, you need to log in
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.
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 questionAsk a Question
731 491 924 answers to any question