From e74a3cc9c83d8934f476f5692b65f923d7c42a04 Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Fri, 26 Apr 2024 14:37:36 -0700 Subject: [PATCH] Update listener callback for node v21 compatibility --- gulpfile.babel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index d7eb7b6..142530d 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -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()))