File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = function(compiler, options) {
11
11
if ( ! options ) options = { } ;
12
12
if ( options . watchDelay === undefined ) options . watchDelay = 200 ;
13
13
if ( ! options . stats ) options . stats = { } ;
14
- if ( ! options . stats . context = == undefined ) options . stats . context = process . cwd ( ) ;
14
+ if ( options . stats . context ! == undefined ) options . stats . context = process . cwd ( ) ;
15
15
16
16
// store our files in memory
17
17
var files = { } ;
@@ -111,7 +111,7 @@ module.exports = function(compiler, options) {
111
111
localPrefix = "/" + localPrefix . replace ( / ^ h t t p s ? : \/ \/ [ ^ \/ ] + \/ / , "" ) ;
112
112
}
113
113
// fast exit if another directory requested
114
- if ( url . indexOf ( localPrefix ) != 0 ) return false ;
114
+ if ( url . indexOf ( localPrefix ) !== 0 ) return false ;
115
115
// get filename from request
116
116
var filename = url . substr ( localPrefix . length ) ;
117
117
return pathJoin ( compiler . outputPath , filename ) ;
You can’t perform that action at this time.
0 commit comments