PS C:\Users\user\OneDrive\Desktop\gulp> gulp scss
[17:15:04] Using gulpfile ~\OneDrive\Desktop\gulp\gulpfile.js
[17:15:04] Starting 'scss'...
Error in plugin "gulp-sass"
Message:
gulp-sass no longer has a default Sass compiler; please set one yourself.
Both the "sass" and "node-sass" packages are permitted.
For example, in your gulpfile:
const sass = require('gulp-sass')(require('sass'));
[17:15:04] The following tasks did not complete: scss
[17:15:04] Did you forget to signal async completion?
Вот такая ошибка, помогите пожалуйста убрать, вот код галпа:
const {src ,dest} = require('gulp')
const sass = require('gulp-sass')
const csso = require('gulp-csso')
const include = require('gulp-file-include')
const htmlmin = require('gulp-htmlmin')
const del = require('del')
const concat = require('gulp-concat')
const autoprefixer = require('gulp-autoprefixer')
const sync = require('browser-sync').create()
function html() {
return src('src/**.html')
.pipe(include({
prefix: '@@'
}))
.pipe(dest('dist'))
}
function scss() {
return src('src/scss/**.scss')
.pipe(sass())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
}))
.pipe(csso())
.pipe(concat('index.css'))
.pipe(dest('dist'))
}
exports.html = html
exports.scss = scss