Skip to content

lazy: true won't ever trigger rebuild without undocumented option "filename" set. #25

Closed
@grrowl

Description

@grrowl

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions