Fixed gulp-notify errors

This commit is contained in:
Jan Jastrow 2020-12-09 00:08:27 +01:00
parent 329c563a41
commit c2713d7632
1 changed files with 16 additions and 16 deletions

View File

@ -41,10 +41,10 @@ var SassConfig = {
function scss_addons() { function scss_addons() {
var onError = function(err) { var onError = function(err) {
notify.onError({ notify.onError({
title: 'scss_addons', "title": "scss_addons",
subtitle: 'Error!', "subtitle": "Error!",
message: '❌ <%= error.message %>', "message": "❌ <%= error.message %>",
sound: 'Submarine' "sound": "Submarine"
})(err); })(err);
this.emit('end'); this.emit('end');
}; };
@ -61,20 +61,20 @@ function scss_addons() {
.pipe(gulp.dest(SassConfig.outputDir)) .pipe(gulp.dest(SassConfig.outputDir))
.pipe(livereload()) .pipe(livereload())
.pipe(notify({ .pipe(notify({
title: 'scss_addons', "title": "scss_addons",
subtitle: 'Success!', "subtitle": "Success!",
message: '✅ SCSS compiled', "message": "✅ SCSS compiled",
timeout: '2' "timeout": "2"
})); }));
} }
function scss_main() { function scss_main() {
var onError = function(err) { var onError = function(err) {
notify.onError({ notify.onError({
title: 'scss_main', "title": "scss_main",
subtitle: 'Error!', "subtitle": "Error!",
message: '❌ <%= error.message %>', "message": "❌ <%= error.message %>",
sound: 'Submarine' "sound": "Submarine"
})(err); })(err);
this.emit('end'); this.emit('end');
}; };
@ -91,10 +91,10 @@ function scss_main() {
.pipe(gulp.dest(SassConfig.outputDir)) .pipe(gulp.dest(SassConfig.outputDir))
.pipe(livereload()) .pipe(livereload())
.pipe(notify({ .pipe(notify({
title: 'scss_main', "title": "scss_main",
subtitle: 'Success!', "subtitle": "Success!",
message: '✅ SCSS compiled', "message": "✅ SCSS compiled",
timeout: '2' "timeout": "2"
})); }));
}; };