Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

React template: CSS Modules HMR not working #667

@novascreen

Description

@novascreen

As soon as i add ?modules to the css-loader I get the following message after a CSS change:

[HMR] The following modules couldn't be hot updated: (Full reload needed)
This is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html for more details.
[HMR]  - ./~/css-loader?modules!./ClientApp/css/site.css

I couldn't find anything that i'm missing to make that work. As far as I understand this should work.
I also looked for an option to pass reload=true to webpack-hot-middleware/client, but nothing seems to be exposed for that.

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