@@ -20,15 +20,15 @@ var defaultReporter = function(reporterOptions) {
20
20
options . noInfo )
21
21
displayStats = false ;
22
22
if ( displayStats ) {
23
- console . log ( stats . toString ( options . stats ) )
23
+ console . log ( stats . toString ( options . stats ) ) ;
24
24
}
25
25
if ( ! options . noInfo && ! options . quiet ) {
26
26
console . info ( "webpack: bundle is now VALID." ) ;
27
27
}
28
28
} else {
29
29
console . info ( "webpack: bundle is now INVALID." ) ;
30
30
}
31
- }
31
+ } ;
32
32
33
33
// constructor for the middleware
34
34
module . exports = function ( compiler , options ) {
@@ -58,7 +58,7 @@ module.exports = function(compiler, options) {
58
58
compiler . plugin ( "done" , function ( stats ) {
59
59
// We are now on valid state
60
60
state = true ;
61
- webpackStats = stats
61
+ webpackStats = stats ;
62
62
63
63
// Do the stuff in nextTick, because bundle may be invalidated
64
64
// if a change happened while compiling
@@ -93,7 +93,7 @@ module.exports = function(compiler, options) {
93
93
options . reporter ( {
94
94
state : false ,
95
95
options : options
96
- } )
96
+ } ) ;
97
97
98
98
// We are now in invalid state
99
99
state = false ;
@@ -147,7 +147,7 @@ module.exports = function(compiler, options) {
147
147
}
148
148
149
149
function pathJoin ( a , b ) {
150
- return a == "/" ? "/" + b : ( a || "" ) + "/" + b
150
+ return a == "/" ? "/" + b : ( a || "" ) + "/" + b ;
151
151
}
152
152
153
153
function getFilenameFromUrl ( url ) {
@@ -199,11 +199,11 @@ module.exports = function(compiler, options) {
199
199
// The middleware function
200
200
function webpackDevMiddleware ( req , res , next ) {
201
201
function goNext ( ) {
202
- if ( ! options . serverSideRender ) return next ( )
202
+ if ( ! options . serverSideRender ) return next ( ) ;
203
203
ready ( function ( ) {
204
- res . locals . webpackStats = webpackStats
205
- next ( )
206
- } , req )
204
+ res . locals . webpackStats = webpackStats ;
205
+ next ( ) ;
206
+ } , req ) ;
207
207
}
208
208
209
209
if ( req . method !== 'GET' ) {
@@ -287,4 +287,4 @@ module.exports = function(compiler, options) {
287
287
webpackDevMiddleware . fileSystem = fs ;
288
288
289
289
return webpackDevMiddleware ;
290
- }
290
+ } ;
0 commit comments