Closed
Description
I have it narrowed down to line 135 of middleware.js:
if(options.lazy && filename === pathJoin(compiler.outputPath, options.filename))
When the undocumented option filename
isn't set, it will attempt to match /Users/tom/Documents/somewebsite/dist/undefined
, fail, and the request will fall through to the next handler, regardless of the file.
Setting { lazy: true, filename: "client.js" }
in the dev-middleware config allows it to handle the request, but this won't work for webpack configurations with multiple entry points.