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