Calling gulp-notify without using .pipe()

后端 未结 1 1481
栀梦
栀梦 2021-02-05 08:59

In my gulpfile.js I have a task that calls two other tasks. When the previous tasks have run, a notification should be triggered.

var notify = requi         


        
1条回答
  •  天涯浪人
    2021-02-05 09:45

    You can use node-notifier directly:

    var notifier = require('node-notifier');
    
    gulp.task('build', ['build:js', 'build:css'], function() {
        notifier.notify({ title: 'Production Build', message: 'Done' });
    });
    

    0 讨论(0)
提交回复
热议问题