Skip to content

Webpack loader blocks all requests silently if webpack-stats hangs at "compile" #341

Open
@wkleinheerenbrink

Description

@wkleinheerenbrink

Currently the 'runserver' command hangs in an infinite loop when webpack-stats has 'status = "compile"'. This is caused by an infinite while loop that is waiting for a different status than 'compile'.

https://github.com/django-webpack/django-webpack-loader/blob/master/webpack_loader/loader.py#L95-L103

The webpack loader has 0 as default for the timeout; ie. 'never timeout'. This results in Django Runserver never emitting any pages (eg. /admin/), without any warning.

I see two possible fixes:

  1. Add a default timeout other than 0
  2. If changing default is not preferred, perhaps add a warning to console mentioning the script is hanging at webpack loader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions