Skip to content

Commit f19834a

Browse files
author
Chris Coggburn
committed
Add browserSync notification upon compilation step
1 parent 51b9ebb commit f19834a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ BrowserSyncPlugin.prototype.apply = function (compiler) {
2626
callback(null, null);
2727
});
2828

29+
compiler.plugin('compilation', function () {
30+
self.browserSync.notify('Rebuilding');
31+
});
32+
2933
compiler.plugin('done', function (stats) {
3034
if (self.webpackIsWatching) {
3135
if (self.browserSyncIsRunning) {

0 commit comments

Comments
 (0)