Fixed gulp-notify errors
This commit is contained in:
parent
329c563a41
commit
c2713d7632
32
gulpfile.js
32
gulpfile.js
@ -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"
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user