Gulp-sass error with notify

前端 未结 5 2055
粉色の甜心
粉色の甜心 2020-12-28 20:12

I wondered if there is a way to have notify display a message on gulp-sass error. preferably the actual message that is displayed in the console.

my gulp task looks

5条回答
  •  自闭症患者
    2020-12-28 21:04

    This is works too:

    /* Compile sass, and output error to notif */
        .pipe(sass({}).on('error', function(err) {
            return notify().write(err);
        }))
    

提交回复
热议问题