Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

reload is broken #92

@alexander-akait

Description

@alexander-akait
  • Operating System: Ubuntu 18.04
  • Node Version: 8.11.3
  • NPM Version: 6.2.0
  • webpack Version: 4.16.1
  • webpack-hot-client Version: 4.1.1

Expected Behavior

Page doesn't reload.

Actual Behavior

Page should reload.

Code

https://github.com/webpack-contrib/webpack-serve/blob/master/docs/addons/static-content-options.config.js

How Do We Reproduce?

  1. Run example above.
  2. Change something in app.js (page has not been reloaded, because initial: true -> https://github.com/webpack-contrib/webpack-hot-client/blob/master/lib/client/index.js#L30 and https://github.com/webpack-contrib/webpack-hot-client/blob/master/lib/client/index.js#L78)
  3. Change something again (page has been reloaded, all fine)
  4. Change again something in app.js (page has not been reloaded, because after reload page initial was setted in true https://github.com/webpack-contrib/webpack-hot-client/blob/master/lib/client/index.js#L30)

Related problem with css (style-loader and css-loader) - first change not applied because initial: true.

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