1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gulp-notifyをストリーム外で表示

Posted at

内容

gulp-notifyをストリーム外で実行する方法です。
時間のかかる処理のコールバックなどで使えます。

コード

ノーマル通知

gulpfile.js
const gulpNotify = require('gulp-notify');

// ノーマル通知
gulpNotify('通知メッセージ').write('');

gulp-notify-normal.png

エラー通知

gulpfile.js
const gulpNotify = require('gulp-notify');

// エラー通知
gulpNotify('通知メッセージ').write(new Error());

gulp-notify-error.png

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?