@@ -27,7 +27,7 @@ function findFirstDFS(compilation, key) {
27
27
}
28
28
}
29
29
30
- WebpackNotifierPlugin . prototype . compileEndOptions = function ( stats ) {
30
+ WebpackNotifierPlugin . prototype . compileEndOptions = function compileEndOptions ( stats ) {
31
31
if ( this . isFirstBuild ) {
32
32
this . isFirstBuild = false ;
33
33
@@ -100,17 +100,17 @@ WebpackNotifierPlugin.prototype.compileEndOptions = function (stats) {
100
100
} ;
101
101
} ;
102
102
103
- WebpackNotifierPlugin . prototype . hasErrors = function ( stats ) {
103
+ WebpackNotifierPlugin . prototype . hasErrors = function hasErrors ( stats ) {
104
104
return stats . hasErrors ( )
105
105
|| stats . compilation . children . some ( child => child . getStats ( ) . hasErrors ( ) ) ;
106
106
} ;
107
107
108
- WebpackNotifierPlugin . prototype . hasWarnings = function ( stats ) {
108
+ WebpackNotifierPlugin . prototype . hasWarnings = function hasWarnings ( stats ) {
109
109
return stats . hasWarnings ( )
110
110
|| stats . compilation . children . some ( child => child . getStats ( ) . hasWarnings ( ) ) ;
111
111
} ;
112
112
113
- WebpackNotifierPlugin . prototype . compilationDone = function ( stats ) {
113
+ WebpackNotifierPlugin . prototype . compilationDone = function compilationDone ( stats ) {
114
114
var { message, contentImage, status } = this . compileEndOptions ( stats ) ;
115
115
if ( message ) {
116
116
var title = this . options . title ? this . options . title : 'Webpack' ;
@@ -139,7 +139,7 @@ WebpackNotifierPlugin.prototype.compilationDone = function (stats) {
139
139
}
140
140
} ;
141
141
142
- WebpackNotifierPlugin . prototype . apply = function ( compiler ) {
142
+ WebpackNotifierPlugin . prototype . apply = function apply ( compiler ) {
143
143
if ( compiler . hooks ) {
144
144
var plugin = { name : 'Notifier' } ;
145
145
0 commit comments