From af15409b893ec54cefbe9a8a1341e53fae4fcb23 Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Fri, 29 Nov 2024 16:20:57 +0000 Subject: [PATCH] Log sass compile errors (#1069) This makes it easier to debug sass compile errors, by logging those errors to the terminal. --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 7569ffefe..877f684d3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -29,7 +29,7 @@ sass.compiler = require('sass') function compileCSS() { return gulp .src(['packages/nhsuk.scss']) - .pipe(sass()) + .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('dist/')) .on('error', (err) => { console.log(err)