Update listener callback for node v21 compatibility

This commit is contained in:
Keegan Rankin 2024-04-26 14:37:36 -07:00
parent e5ee7603c2
commit e74a3cc9c8

View file

@ -16,7 +16,6 @@ import named from 'vinyl-named';
import autoprefixer from 'autoprefixer';
import imagemin from 'gulp-imagemin';
const sass = require('gulp-sass')(require('sass'));
const postcss = require('gulp-postcss');
const sassLint = require('gulp-sass-lint');
@ -68,7 +67,7 @@ function sassBuild() {
.pipe(sass({
includePaths: PATHS.foundationScss
})
.on('error', $.sass.logError))
.on('error', sass.logError))
.pipe(postcss(postCssPlugins))
.pipe($.if(PRODUCTION, $.cleanCss({ compatibility: 'ie11' })))
.pipe($.if(!PRODUCTION, $.sourcemaps.write()))