Skip to content

Reset current compilation if file was changed #369

Open
@sanex3339

Description

@sanex3339

The Issues page for this repository is not a support forum. Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). Questions will be closed. If you proceed with this form, please fill out all fields, or your issue may be closed as "invalid." Please do not delete this template from a new issue. Please remove this header to acknowledge this message.

  • Operating System: Mac OS 10.12.4
  • Node Version: 8.11.2
  • NPM Version: 5.6.0
  • webpack version: 4.29.3
  • webpack-dev-middleware Version: 3.5.2
  • [] This is a feature request
  • This is a bug

Expected Behavior

Current active compilation should reset if file was changed and next compilation should start immediate

Actual Behavior

Current active compilation will finish first if file was changed and only after that - next compilation will start

For Bugs; How can we reproduce the behavior?

I'm using latest koa-webpack + webpack@4.
Start server, change file, after two seconds change file again. As result - two full compilations instead of 2 seconds of first compilation + full second compilation.

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